OSDN Git Service

switch udf_ioctl() to inode_permission()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 19 Jun 2011 15:49:08 +0000 (11:49 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Jul 2011 05:43:07 +0000 (01:43 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/udf/file.c

index 2a346bb..d8ffa7c 100644 (file)
@@ -150,7 +150,7 @@ long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
        long old_block, new_block;
        int result = -EINVAL;
 
-       if (file_permission(filp, MAY_READ) != 0) {
+       if (inode_permission(inode, MAY_READ) != 0) {
                udf_debug("no permission to access inode %lu\n", inode->i_ino);
                result = -EPERM;
                goto out;