f2fs: use inner macro and function to clean up codes
authorChao Yu <chao2.yu@samsung.com>
Mon, 7 Jul 2014 03:21:59 +0000 (11:21 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 9 Jul 2014 21:04:26 +0000 (14:04 -0700)
commit6b2920a513ec9972f7b80d219fcf6f59130a1f31
treee782c3532674eba15e819c192d14207e94e1e4cb
parent3aab8f828ef358ae92545294a14cd52d510cc585
f2fs: use inner macro and function to clean up codes

In this patch we use below inner macro and function to clean up codes.
1. ADDRS_PER_PAGE
2. SM_I
3. f2fs_readonly

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c
fs/f2fs/segment.c
fs/f2fs/super.c