@@ -3881,7 +3881,7 @@ static long btrfs_ioctl_qgroup_limit(struct file *file, void __user *arg)
38813881
38823882static 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
39153915static 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
40214021static 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
40404040static 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