->permission() sanitizing: don't pass flags to ->permission()
not used by the instances anymore. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -748,12 +748,12 @@ int hostfs_rename(struct inode *from_ino, struct dentry *from,
|
||||
return err;
|
||||
}
|
||||
|
||||
int hostfs_permission(struct inode *ino, int desired, unsigned int flags)
|
||||
int hostfs_permission(struct inode *ino, int desired)
|
||||
{
|
||||
char *name;
|
||||
int r = 0, w = 0, x = 0, err;
|
||||
|
||||
if (flags & IPERM_FLAG_RCU)
|
||||
if (desired & MAY_NOT_BLOCK)
|
||||
return -ECHILD;
|
||||
|
||||
if (desired & MAY_READ) r = 1;
|
||||
|
Reference in New Issue
Block a user