summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-12-14 18:58:42 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-12-14 18:58:42 -0800
commita11fac3776fc4db6a9fa1104b1d0477809c677e0 (patch)
treec73eefde6e564da28d64f57feaa9c13777b84940 /include
parent9a59b62fd88196844cee5fff851bee2cfd7afb6e (diff)
downloadlinux-stable-a11fac3776fc4db6a9fa1104b1d0477809c677e0.tar.gz
linux-stable-a11fac3776fc4db6a9fa1104b1d0477809c677e0.tar.bz2
linux-stable-a11fac3776fc4db6a9fa1104b1d0477809c677e0.zip
f2fs: add symbol to avoid any confusion with tools
This patch adds MAX_VOLUME_NAME to sync with f2fs-tools. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/f2fs_fs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h
index 25c6324a0dd0..e59c3be92106 100644
--- a/include/linux/f2fs_fs.h
+++ b/include/linux/f2fs_fs.h
@@ -51,6 +51,7 @@
#define MAX_ACTIVE_DATA_LOGS 8
#define VERSION_LEN 256
+#define MAX_VOLUME_NAME 512
/*
* For superblock
@@ -84,7 +85,7 @@ struct f2fs_super_block {
__le32 node_ino; /* node inode number */
__le32 meta_ino; /* meta inode number */
__u8 uuid[16]; /* 128-bit uuid for volume */
- __le16 volume_name[512]; /* volume name */
+ __le16 volume_name[MAX_VOLUME_NAME]; /* volume name */
__le32 extension_count; /* # of extensions below */
__u8 extension_list[F2FS_MAX_EXTENSION][8]; /* extension array */
__le32 cp_payload;