f2fs: introduce f2fs_journal struct to wrap journal info
authorChao Yu <chao2.yu@samsung.com>
Sun, 14 Feb 2016 10:50:40 +0000 (18:50 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Feb 2016 05:39:53 +0000 (21:39 -0800)
commitdfc08a12e49a64f97d8b474da1d7745230cec5eb
tree259b9f08d134d8563335c25b69bad855f150e64f
parent922ec355f86365388203672119b5bca346a45085
f2fs: introduce f2fs_journal struct to wrap journal info

Introduce a new structure f2fs_journal to wrap journal info in struct
f2fs_summary_block for readability.

struct f2fs_journal {
union {
__le16 n_nats;
__le16 n_sits;
};
union {
struct nat_journal nat_j;
struct sit_journal sit_j;
struct f2fs_extra_info info;
};
} __packed;

struct f2fs_summary_block {
struct f2fs_summary entries[ENTRIES_IN_SUM];
struct f2fs_journal journal;
struct summary_footer footer;
} __packed;

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/node.c
fs/f2fs/segment.c
fs/f2fs/super.c
include/linux/f2fs_fs.h