]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/namespace.c
kconfig: make lxdialog/menubox.c more readable
[linux-2.6-omap-h63xx.git] / fs / namespace.c
index caa9187f67e5e639cba914edb10fabeb66016f7b..2019899f2ab822caec7dd235e8c610096549a93b 100644 (file)
@@ -637,7 +637,7 @@ static int mount_is_safe(struct nameidata *nd)
                if (current->uid != nd->dentry->d_inode->i_uid)
                        return -EPERM;
        }
-       if (permission(nd->dentry->d_inode, MAY_WRITE, nd))
+       if (vfs_permission(nd, MAY_WRITE))
                return -EPERM;
        return 0;
 #endif