]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/namei.c
btrfs: Switch memory allocations in async csum calculation path to kvmalloc
[linux.git] / fs / namei.c
index 0cab6494978c1295b965f503422bdbeacff6ccc4..914178cdbe94b45c1c14040733eb67cdbcf4bc55 100644 (file)
@@ -3701,8 +3701,7 @@ int vfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)
        if (error)
                return error;
 
-       if ((S_ISCHR(mode) || S_ISBLK(mode)) &&
-           !ns_capable(dentry->d_sb->s_user_ns, CAP_MKNOD))
+       if ((S_ISCHR(mode) || S_ISBLK(mode)) && !capable(CAP_MKNOD))
                return -EPERM;
 
        if (!dir->i_op->mknod)