summaryrefslogtreecommitdiff
path: root/fs/f2fs/segment.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-03-31 12:39:49 +0900
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-04-03 16:23:10 +0900
commit53cf95222fad7a962cc03fb61a33e37bcf4f5c9d (patch)
treed908690ba50571d23a55bcb788d8b1c4cd92c5b6 /fs/f2fs/segment.h
parent5c773ba33a29c0dcddac7cfaa39fc63a7137130d (diff)
downloadkernel-common-53cf95222fad7a962cc03fb61a33e37bcf4f5c9d.tar.gz
kernel-common-53cf95222fad7a962cc03fb61a33e37bcf4f5c9d.tar.bz2
kernel-common-53cf95222fad7a962cc03fb61a33e37bcf4f5c9d.zip
f2fs: introduce TOTAL_SECS macro
Let's use a macro to get the total number of sections. Reviewed-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/segment.h')
-rw-r--r--fs/f2fs/segment.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h
index c0d774076ab9..fea9245d4774 100644
--- a/fs/f2fs/segment.h
+++ b/fs/f2fs/segment.h
@@ -81,6 +81,7 @@
#define f2fs_bitmap_size(nr) \
(BITS_TO_LONGS(nr) * sizeof(unsigned long))
#define TOTAL_SEGS(sbi) (SM_I(sbi)->main_segments)
+#define TOTAL_SECS(sbi) (sbi->total_sections)
#define SECTOR_FROM_BLOCK(sbi, blk_addr) \
(blk_addr << ((sbi)->log_blocksize - F2FS_LOG_SECTOR_SIZE))