f2fs: read contiguous sit entry pages by merging for mount performance
[deliverable/linux.git] / fs / f2fs / segment.h
index 38f6196493ff542a04a31c8745ea0b8cd02bbb73..b84dd239666586c18436f51d7ccc7c780f05da86 100644 (file)
@@ -78,6 +78,8 @@
        (segno / SIT_ENTRY_PER_BLOCK)
 #define        START_SEGNO(sit_i, segno)               \
        (SIT_BLOCK_OFFSET(sit_i, segno) * SIT_ENTRY_PER_BLOCK)
+#define SIT_BLK_CNT(sbi)                       \
+       ((TOTAL_SEGS(sbi) + SIT_ENTRY_PER_BLOCK - 1) / SIT_ENTRY_PER_BLOCK)
 #define f2fs_bitmap_size(nr)                   \
        (BITS_TO_LONGS(nr) * sizeof(unsigned long))
 #define TOTAL_SEGS(sbi)        (SM_I(sbi)->main_segments)
This page took 0.036056 seconds and 5 git commands to generate.