]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/f2fs/segment.c
f2fs: push some variables to debug part
[linux.git] / fs / f2fs / segment.c
index 3a0d027aad7e4d8559794d1eed7f37e95d4bc8c5..be668ffb001c1d5d0a0f5f2608ae8360560df2d1 100644 (file)
@@ -610,7 +610,10 @@ static void allocate_segment_by_default(struct f2fs_sb_info *sbi,
        else
                new_curseg(sbi, type, false);
 out:
+#ifdef CONFIG_F2FS_STAT_FS
        sbi->segment_count[curseg->alloc_type]++;
+#endif
+       return;
 }
 
 void allocate_new_segments(struct f2fs_sb_info *sbi)
@@ -846,7 +849,9 @@ static void do_write_page(struct f2fs_sb_info *sbi, struct page *page,
 
        mutex_lock(&sit_i->sentry_lock);
        __refresh_next_blkoff(sbi, curseg);
+#ifdef CONFIG_F2FS_STAT_FS
        sbi->block_count[curseg->alloc_type]++;
+#endif
 
        /*
         * SIT information should be updated before segment allocation,