@@ -3362,7 +3362,7 @@ static int f2fs_ioc_measure_verity(struct file *filp, unsigned long arg)
3362
3362
return fsverity_ioctl_measure (filp , (void __user * )arg );
3363
3363
}
3364
3364
3365
- static int f2fs_get_volume_name (struct file * filp , unsigned long arg )
3365
+ static int f2fs_ioc_getfslabel (struct file * filp , unsigned long arg )
3366
3366
{
3367
3367
struct inode * inode = file_inode (filp );
3368
3368
struct f2fs_sb_info * sbi = F2FS_I_SB (inode );
@@ -3388,7 +3388,7 @@ static int f2fs_get_volume_name(struct file *filp, unsigned long arg)
3388
3388
return err ;
3389
3389
}
3390
3390
3391
- static int f2fs_set_volume_name (struct file * filp , unsigned long arg )
3391
+ static int f2fs_ioc_setfslabel (struct file * filp , unsigned long arg )
3392
3392
{
3393
3393
struct inode * inode = file_inode (filp );
3394
3394
struct f2fs_sb_info * sbi = F2FS_I_SB (inode );
@@ -3767,11 +3767,11 @@ long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
3767
3767
return - ENOSPC ;
3768
3768
3769
3769
switch (cmd ) {
3770
- case F2FS_IOC_GETFLAGS :
3770
+ case FS_IOC_GETFLAGS :
3771
3771
return f2fs_ioc_getflags (filp , arg );
3772
- case F2FS_IOC_SETFLAGS :
3772
+ case FS_IOC_SETFLAGS :
3773
3773
return f2fs_ioc_setflags (filp , arg );
3774
- case F2FS_IOC_GETVERSION :
3774
+ case FS_IOC_GETVERSION :
3775
3775
return f2fs_ioc_getversion (filp , arg );
3776
3776
case F2FS_IOC_START_ATOMIC_WRITE :
3777
3777
return f2fs_ioc_start_atomic_write (filp );
@@ -3787,11 +3787,11 @@ long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
3787
3787
return f2fs_ioc_shutdown (filp , arg );
3788
3788
case FITRIM :
3789
3789
return f2fs_ioc_fitrim (filp , arg );
3790
- case F2FS_IOC_SET_ENCRYPTION_POLICY :
3790
+ case FS_IOC_SET_ENCRYPTION_POLICY :
3791
3791
return f2fs_ioc_set_encryption_policy (filp , arg );
3792
- case F2FS_IOC_GET_ENCRYPTION_POLICY :
3792
+ case FS_IOC_GET_ENCRYPTION_POLICY :
3793
3793
return f2fs_ioc_get_encryption_policy (filp , arg );
3794
- case F2FS_IOC_GET_ENCRYPTION_PWSALT :
3794
+ case FS_IOC_GET_ENCRYPTION_PWSALT :
3795
3795
return f2fs_ioc_get_encryption_pwsalt (filp , arg );
3796
3796
case FS_IOC_GET_ENCRYPTION_POLICY_EX :
3797
3797
return f2fs_ioc_get_encryption_policy_ex (filp , arg );
@@ -3819,9 +3819,9 @@ long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
3819
3819
return f2fs_ioc_flush_device (filp , arg );
3820
3820
case F2FS_IOC_GET_FEATURES :
3821
3821
return f2fs_ioc_get_features (filp , arg );
3822
- case F2FS_IOC_FSGETXATTR :
3822
+ case FS_IOC_FSGETXATTR :
3823
3823
return f2fs_ioc_fsgetxattr (filp , arg );
3824
- case F2FS_IOC_FSSETXATTR :
3824
+ case FS_IOC_FSSETXATTR :
3825
3825
return f2fs_ioc_fssetxattr (filp , arg );
3826
3826
case F2FS_IOC_GET_PIN_FILE :
3827
3827
return f2fs_ioc_get_pin_file (filp , arg );
@@ -3835,10 +3835,10 @@ long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
3835
3835
return f2fs_ioc_enable_verity (filp , arg );
3836
3836
case FS_IOC_MEASURE_VERITY :
3837
3837
return f2fs_ioc_measure_verity (filp , arg );
3838
- case F2FS_IOC_GET_VOLUME_NAME :
3839
- return f2fs_get_volume_name (filp , arg );
3840
- case F2FS_IOC_SET_VOLUME_NAME :
3841
- return f2fs_set_volume_name (filp , arg );
3838
+ case FS_IOC_GETFSLABEL :
3839
+ return f2fs_ioc_getfslabel (filp , arg );
3840
+ case FS_IOC_SETFSLABEL :
3841
+ return f2fs_ioc_setfslabel (filp , arg );
3842
3842
case F2FS_IOC_GET_COMPRESS_BLOCKS :
3843
3843
return f2fs_get_compress_blocks (filp , arg );
3844
3844
case F2FS_IOC_RELEASE_COMPRESS_BLOCKS :
@@ -3969,14 +3969,14 @@ static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
3969
3969
long f2fs_compat_ioctl (struct file * file , unsigned int cmd , unsigned long arg )
3970
3970
{
3971
3971
switch (cmd ) {
3972
- case F2FS_IOC32_GETFLAGS :
3973
- cmd = F2FS_IOC_GETFLAGS ;
3972
+ case FS_IOC32_GETFLAGS :
3973
+ cmd = FS_IOC_GETFLAGS ;
3974
3974
break ;
3975
- case F2FS_IOC32_SETFLAGS :
3976
- cmd = F2FS_IOC_SETFLAGS ;
3975
+ case FS_IOC32_SETFLAGS :
3976
+ cmd = FS_IOC_SETFLAGS ;
3977
3977
break ;
3978
- case F2FS_IOC32_GETVERSION :
3979
- cmd = F2FS_IOC_GETVERSION ;
3978
+ case FS_IOC32_GETVERSION :
3979
+ cmd = FS_IOC_GETVERSION ;
3980
3980
break ;
3981
3981
case F2FS_IOC_START_ATOMIC_WRITE :
3982
3982
case F2FS_IOC_COMMIT_ATOMIC_WRITE :
@@ -3985,9 +3985,9 @@ long f2fs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
3985
3985
case F2FS_IOC_ABORT_VOLATILE_WRITE :
3986
3986
case F2FS_IOC_SHUTDOWN :
3987
3987
case FITRIM :
3988
- case F2FS_IOC_SET_ENCRYPTION_POLICY :
3989
- case F2FS_IOC_GET_ENCRYPTION_PWSALT :
3990
- case F2FS_IOC_GET_ENCRYPTION_POLICY :
3988
+ case FS_IOC_SET_ENCRYPTION_POLICY :
3989
+ case FS_IOC_GET_ENCRYPTION_PWSALT :
3990
+ case FS_IOC_GET_ENCRYPTION_POLICY :
3991
3991
case FS_IOC_GET_ENCRYPTION_POLICY_EX :
3992
3992
case FS_IOC_ADD_ENCRYPTION_KEY :
3993
3993
case FS_IOC_REMOVE_ENCRYPTION_KEY :
@@ -4001,16 +4001,16 @@ long f2fs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
4001
4001
case F2FS_IOC_MOVE_RANGE :
4002
4002
case F2FS_IOC_FLUSH_DEVICE :
4003
4003
case F2FS_IOC_GET_FEATURES :
4004
- case F2FS_IOC_FSGETXATTR :
4005
- case F2FS_IOC_FSSETXATTR :
4004
+ case FS_IOC_FSGETXATTR :
4005
+ case FS_IOC_FSSETXATTR :
4006
4006
case F2FS_IOC_GET_PIN_FILE :
4007
4007
case F2FS_IOC_SET_PIN_FILE :
4008
4008
case F2FS_IOC_PRECACHE_EXTENTS :
4009
4009
case F2FS_IOC_RESIZE_FS :
4010
4010
case FS_IOC_ENABLE_VERITY :
4011
4011
case FS_IOC_MEASURE_VERITY :
4012
- case F2FS_IOC_GET_VOLUME_NAME :
4013
- case F2FS_IOC_SET_VOLUME_NAME :
4012
+ case FS_IOC_GETFSLABEL :
4013
+ case FS_IOC_SETFSLABEL :
4014
4014
case F2FS_IOC_GET_COMPRESS_BLOCKS :
4015
4015
case F2FS_IOC_RELEASE_COMPRESS_BLOCKS :
4016
4016
case F2FS_IOC_RESERVE_COMPRESS_BLOCKS :
0 commit comments