aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2016-02-14 18:50:40 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-02-22 21:39:53 -0800
commitdfc08a12e49a64f97d8b474da1d7745230cec5eb (patch)
tree259b9f08d134d8563335c25b69bad855f150e64f /fs/f2fs/checkpoint.c
parentf2fs crypto: avoid unneeded memory allocation when {en/de}crypting symlink (diff)
downloadlinux-dev-dfc08a12e49a64f97d8b474da1d7745230cec5eb.tar.xz
linux-dev-dfc08a12e49a64f97d8b474da1d7745230cec5eb.zip
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>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r--fs/f2fs/checkpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 536bec99bd64..3cdcdaf1d0fe 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -1051,7 +1051,7 @@ static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
if (sb->s_bdev->bd_part)
kbytes_written += BD_PART_WRITTEN(sbi);
- seg_i->sum_blk->info.kbytes_written = cpu_to_le64(kbytes_written);
+ seg_i->sum_blk->journal.info.kbytes_written = cpu_to_le64(kbytes_written);
if (__remain_node_summaries(cpc->reason)) {
write_node_summaries(sbi, start_blk);