Browse Source

btrfs: uapi/linux/btrfs.h migration, move BTRFS_LABEL_SIZE

BTRFS_LABEL_SIZE is required to define the BTRFS_IOC_GET_FSLABEL and
BTRFS_IOC_SET_FSLABEL ioctls.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Jeff Mahoney 9 years ago
parent
commit
d4ae133b2d
2 changed files with 1 additions and 1 deletions
  1. 0 1
      fs/btrfs/ctree.h
  2. 1 0
      include/uapi/linux/btrfs.h

+ 0 - 1
fs/btrfs/ctree.h

@@ -410,7 +410,6 @@ struct btrfs_header {
  * room to translate 14 chunks with 3 stripes each.
  * room to translate 14 chunks with 3 stripes each.
  */
  */
 #define BTRFS_SYSTEM_CHUNK_ARRAY_SIZE 2048
 #define BTRFS_SYSTEM_CHUNK_ARRAY_SIZE 2048
-#define BTRFS_LABEL_SIZE 256
 
 
 /*
 /*
  * just in case we somehow lose the roots and are not able to mount,
  * just in case we somehow lose the roots and are not able to mount,

+ 1 - 0
include/uapi/linux/btrfs.h

@@ -23,6 +23,7 @@
 
 
 #define BTRFS_IOCTL_MAGIC 0x94
 #define BTRFS_IOCTL_MAGIC 0x94
 #define BTRFS_VOL_NAME_MAX 255
 #define BTRFS_VOL_NAME_MAX 255
+#define BTRFS_LABEL_SIZE 256
 
 
 /* this should be 4k */
 /* this should be 4k */
 #define BTRFS_PATH_NAME_MAX 4087
 #define BTRFS_PATH_NAME_MAX 4087