diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-07-22 14:09:30 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-07-27 02:53:32 +0200 |
commit | 256984a83880ff7ac78055cb87baea48137f0b77 (patch) | |
tree | a6a98bd747503df5d302b80aefd691db2a508252 /fs/inotify_user.c | |
parent | [PATCH] kill nameidata passing to permission(), rename to inode_permission() (diff) | |
download | linux-256984a83880ff7ac78055cb87baea48137f0b77.tar.xz linux-256984a83880ff7ac78055cb87baea48137f0b77.zip |
[PATCH] preparation to __user_walk_fd cleanup
Almost all users __user_walk_fd() and friends care only about struct path.
Get rid of the few that do not.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/inotify_user.c')
-rw-r--r-- | fs/inotify_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/inotify_user.c b/fs/inotify_user.c index fe79c25d95dc..9b99ebf28884 100644 --- a/fs/inotify_user.c +++ b/fs/inotify_user.c @@ -365,7 +365,7 @@ static int find_inode(const char __user *dirname, struct nameidata *nd, if (error) return error; /* you can only watch an inode if you have read permissions on it */ - error = vfs_permission(nd, MAY_READ); + error = inode_permission(nd->path.dentry->d_inode, MAY_READ); if (error) path_put(&nd->path); return error; |