summaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorAl Viro2015-05-07 17:14:26 +0200
committerAl Viro2015-05-11 14:13:12 +0200
commit5f2c4179e129bdc47870a81a65d0aff85aa18293 (patch)
tree23418d022fad27038f37bececb15eef232567ab2 /mm/shmem.c
parentsecurity: make inode_follow_link RCU-walk aware (diff)
downloadkernel-qcow2-linux-5f2c4179e129bdc47870a81a65d0aff85aa18293.tar.gz
kernel-qcow2-linux-5f2c4179e129bdc47870a81a65d0aff85aa18293.tar.xz
kernel-qcow2-linux-5f2c4179e129bdc47870a81a65d0aff85aa18293.zip
switch ->put_link() from dentry to inode
only one instance looks at that argument at all; that sole exception wants inode rather than dentry. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index e02682267046..a59087edf728 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2486,7 +2486,7 @@ static const char *shmem_follow_link(struct dentry *dentry, void **cookie)
return kmap(page);
}
-static void shmem_put_link(struct dentry *dentry, void *cookie)
+static void shmem_put_link(struct inode *unused, void *cookie)
{
struct page *page = cookie;
kunmap(page);