diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-20 19:28:19 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 01:43:24 -0400 |
commit | 10556cb21a0d0b24d95f00ea6df16f599a3345b2 (patch) | |
tree | 3d7d8dfba807805a55c154f1850717bf3b49f343 /fs/hostfs | |
parent | 2830ba7f34ebb27c4e5b8b6ef408cd6d74860890 (diff) |
->permission() sanitizing: don't pass flags to ->permission()
not used by the instances anymore.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hostfs')
-rw-r--r-- | fs/hostfs/hostfs_kern.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index b1bc31bde833..6e449c599b9d 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c | |||
@@ -748,12 +748,12 @@ int hostfs_rename(struct inode *from_ino, struct dentry *from, | |||
748 | return err; | 748 | return err; |
749 | } | 749 | } |
750 | 750 | ||
751 | int hostfs_permission(struct inode *ino, int desired, unsigned int flags) | 751 | int hostfs_permission(struct inode *ino, int desired) |
752 | { | 752 | { |
753 | char *name; | 753 | char *name; |
754 | int r = 0, w = 0, x = 0, err; | 754 | int r = 0, w = 0, x = 0, err; |
755 | 755 | ||
756 | if (flags & IPERM_FLAG_RCU) | 756 | if (desired & MAY_NOT_BLOCK) |
757 | return -ECHILD; | 757 | return -ECHILD; |
758 | 758 | ||
759 | if (desired & MAY_READ) r = 1; | 759 | if (desired & MAY_READ) r = 1; |