Loading fs/btrfs/ioctl.c +0 −7 Original line number Diff line number Diff line Loading @@ -1381,14 +1381,10 @@ static noinline int btrfs_ioctl_snap_create_transid(struct file *file, u64 *transid, bool readonly) { struct btrfs_root *root = BTRFS_I(fdentry(file)->d_inode)->root; struct file *src_file; int namelen; int ret = 0; if (root->fs_info->sb->s_flags & MS_RDONLY) return -EROFS; ret = mnt_want_write_file(file); if (ret) goto out; Loading Loading @@ -3269,9 +3265,6 @@ static long btrfs_ioctl_balance(struct file *file, void __user *arg) if (!capable(CAP_SYS_ADMIN)) return -EPERM; if (fs_info->sb->s_flags & MS_RDONLY) return -EROFS; ret = mnt_want_write(file->f_path.mnt); if (ret) return ret; Loading Loading
fs/btrfs/ioctl.c +0 −7 Original line number Diff line number Diff line Loading @@ -1381,14 +1381,10 @@ static noinline int btrfs_ioctl_snap_create_transid(struct file *file, u64 *transid, bool readonly) { struct btrfs_root *root = BTRFS_I(fdentry(file)->d_inode)->root; struct file *src_file; int namelen; int ret = 0; if (root->fs_info->sb->s_flags & MS_RDONLY) return -EROFS; ret = mnt_want_write_file(file); if (ret) goto out; Loading Loading @@ -3269,9 +3265,6 @@ static long btrfs_ioctl_balance(struct file *file, void __user *arg) if (!capable(CAP_SYS_ADMIN)) return -EPERM; if (fs_info->sb->s_flags & MS_RDONLY) return -EROFS; ret = mnt_want_write(file->f_path.mnt); if (ret) return ret; Loading