diff options
author | Changman Lee <cm224.lee@samsung.com> | 2014-11-17 14:03:41 +0900 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2015-03-23 10:10:26 -0700 |
commit | 060292e67ad6c191be086c6dd520fd7365050ed6 (patch) | |
tree | b95d96f5638d939390343436cbf6b02a112c32a7 /lib | |
parent | 7dce30f2acad0f1f23d566c43e83d3f0098b1c1b (diff) | |
download | android_external_f2fs-tools-060292e67ad6c191be086c6dd520fd7365050ed6.tar.gz android_external_f2fs-tools-060292e67ad6c191be086c6dd520fd7365050ed6.tar.bz2 android_external_f2fs-tools-060292e67ad6c191be086c6dd520fd7365050ed6.zip |
mkfs.f2fs: introduce some macros to simplify coding style
This patch tries to simplify coding style for readability.
Rename shortly
o rename super_block to sb
And, introduce some macros.
o set/get_cp
o set/get_sb
o next/prev_zone, last_zone and last_section
o ALIGN, SEG_ALIGN and ZONE_ALIGN
Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libf2fs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libf2fs.c b/lib/libf2fs.c index 14e4164..8123528 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -357,6 +357,7 @@ void f2fs_init_configuration(struct f2fs_configuration *c) c->overprovision = 5; c->segs_per_sec = 1; c->secs_per_zone = 1; + c->segs_per_zone = 1; c->heap = 1; c->vol_label = ""; c->device_name = NULL; |