History

btrfs: use common vfs LABEL ioctl definitions

I lifted the btrfs label get/set ioctls to the vfs some time ago, but never followed up to use those common definitions directly in btrfs. This patch does that.

Eric Sandeen committed 7 years ago

Commit 40cf9311 parent 5044ed42 files · +6 −8Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/btrfs.h+2−4
@@ -917,10 +917,8 @@ enum btrfs_err_code { · 916 unmodified lines
917917 #define BTRFS_IOC_QUOTA_RESCAN_STATUS _IOR(BTRFS_IOCTL_MAGIC, 45, \
918918 struct btrfs_ioctl_quota_rescan_args)
919919 #define BTRFS_IOC_QUOTA_RESCAN_WAIT _IO(BTRFS_IOCTL_MAGIC, 46)
920−#define BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \
921− char[BTRFS_LABEL_SIZE])
922−#define BTRFS_IOC_SET_FSLABEL _IOW(BTRFS_IOCTL_MAGIC, 50, \
923− char[BTRFS_LABEL_SIZE])
920+#define BTRFS_IOC_GET_FSLABEL FS_IOC_GETFSLABEL
921+#define BTRFS_IOC_SET_FSLABEL FS_IOC_SETFSLABEL
924922 #define BTRFS_IOC_GET_DEV_STATS _IOWR(BTRFS_IOCTL_MAGIC, 52, \
925923 struct btrfs_ioctl_get_dev_stats)
926924 #define BTRFS_IOC_DEV_REPLACE _IOWR(BTRFS_IOCTL_MAGIC, 53, \