Skip to content

Commit 6d0379e

Browse files
author
Al Viro
committed
btrfs: more open-coded file_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 3058dca commit 6d0379e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎fs/btrfs/ioctl.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3881,7 +3881,7 @@ static long btrfs_ioctl_qgroup_limit(struct file *file, void __user *arg)
38813881

38823882
static long btrfs_ioctl_quota_rescan(struct file *file, void __user *arg)
38833883
{
3884-
struct btrfs_root *root = BTRFS_I(fdentry(file)->d_inode)->root;
3884+
struct btrfs_root *root = BTRFS_I(file_inode(file))->root;
38853885
struct btrfs_ioctl_quota_rescan_args *qsa;
38863886
int ret;
38873887

@@ -3914,7 +3914,7 @@ static long btrfs_ioctl_quota_rescan(struct file *file, void __user *arg)
39143914

39153915
static long btrfs_ioctl_quota_rescan_status(struct file *file, void __user *arg)
39163916
{
3917-
struct btrfs_root *root = BTRFS_I(fdentry(file)->d_inode)->root;
3917+
struct btrfs_root *root = BTRFS_I(file_inode(file))->root;
39183918
struct btrfs_ioctl_quota_rescan_args *qsa;
39193919
int ret = 0;
39203920

@@ -4020,7 +4020,7 @@ static long btrfs_ioctl_set_received_subvol(struct file *file,
40204020

40214021
static int btrfs_ioctl_get_fslabel(struct file *file, void __user *arg)
40224022
{
4023-
struct btrfs_root *root = BTRFS_I(fdentry(file)->d_inode)->root;
4023+
struct btrfs_root *root = BTRFS_I(file_inode(file))->root;
40244024
const char *label = root->fs_info->super_copy->label;
40254025
size_t len = strnlen(label, BTRFS_LABEL_SIZE);
40264026
int ret;
@@ -4039,7 +4039,7 @@ static int btrfs_ioctl_get_fslabel(struct file *file, void __user *arg)
40394039

40404040
static int btrfs_ioctl_set_fslabel(struct file *file, void __user *arg)
40414041
{
4042-
struct btrfs_root *root = BTRFS_I(fdentry(file)->d_inode)->root;
4042+
struct btrfs_root *root = BTRFS_I(file_inode(file))->root;
40434043
struct btrfs_super_block *super_block = root->fs_info->super_copy;
40444044
struct btrfs_trans_handle *trans;
40454045
char label[BTRFS_LABEL_SIZE];

0 commit comments

Comments
 (0)