diff options
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; |