From 1a35b5e29df043678b7ce485aee5fb2607d514c8 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Tue, 8 Dec 2015 17:33:23 -0800 Subject: [PATCH] f2fs-tools: export print_raw_sb_info This patch exports print_raw_sb_info(). Signed-off-by: Jaegeuk Kim --- fsck/fsck.h | 2 ++ fsck/mount.c | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fsck/fsck.h b/fsck/fsck.h index 20dfe6b..f6b8c53 100644 --- a/fsck/fsck.h +++ b/fsck/fsck.h @@ -132,6 +132,8 @@ extern void fsck_free(struct f2fs_sb_info *); extern int f2fs_do_mount(struct f2fs_sb_info *); extern void f2fs_do_umount(struct f2fs_sb_info *); +extern void print_raw_sb_info(struct f2fs_super_block *); + /* dump.c */ struct dump_option { nid_t nid; diff --git a/fsck/mount.c b/fsck/mount.c index 9431cd0..99e2439 100644 --- a/fsck/mount.c +++ b/fsck/mount.c @@ -99,10 +99,8 @@ void print_node_info(struct f2fs_node *node_block) } } -void print_raw_sb_info(struct f2fs_sb_info *sbi) +void print_raw_sb_info(struct f2fs_super_block *sb) { - struct f2fs_super_block *sb = F2FS_RAW_SUPER(sbi); - if (!config.dbg_lv) return; @@ -1292,7 +1290,7 @@ int f2fs_do_mount(struct f2fs_sb_info *sbi) return -1; } - print_raw_sb_info(sbi); + print_raw_sb_info(F2FS_RAW_SUPER(sbi)); init_sb_info(sbi); -- 2.7.4