summaryrefslogtreecommitdiffstats
path: root/include/linux/f2fs_fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-04-20 11:52:23 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2015-05-28 15:41:26 -0700
commit0040b933187b11f78e83dd162a31d64a46be4e37 (patch)
tree0134b137a80723616db7b2bd554b74078a4a5289 /include/linux/f2fs_fs.h
parent2aa7c51a453fbd5b0a58156623ea950bcb9db526 (diff)
downloadop-kernel-dev-0040b933187b11f78e83dd162a31d64a46be4e37.zip
op-kernel-dev-0040b933187b11f78e83dd162a31d64a46be4e37.tar.gz
f2fs: add missing version info in superblock
The mkfs.f2fs remains kernel version in superblock, but f2fs module has not added that so far. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/linux/f2fs_fs.h')
-rw-r--r--include/linux/f2fs_fs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h
index 591f8c3..8d345c2 100644
--- a/include/linux/f2fs_fs.h
+++ b/include/linux/f2fs_fs.h
@@ -50,6 +50,8 @@
#define MAX_ACTIVE_NODE_LOGS 8
#define MAX_ACTIVE_DATA_LOGS 8
+#define VERSION_LEN 256
+
/*
* For superblock
*/
@@ -86,6 +88,9 @@ struct f2fs_super_block {
__le32 extension_count; /* # of extensions below */
__u8 extension_list[F2FS_MAX_EXTENSION][8]; /* extension array */
__le32 cp_payload;
+ __u8 version[VERSION_LEN]; /* the kernel version */
+ __u8 init_version[VERSION_LEN]; /* the initial kernel version */
+ __u8 reserved[892]; /* valid reserved region */
} __packed;
/*
OpenPOWER on IntegriCloud