]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/f2fs/checkpoint.c
f2fs: push some variables to debug part
[linux.git] / fs / f2fs / checkpoint.c
index 3d1144908ac692edf0d71cea036449b8567d0711..01ddc911ac9b1937936fa440929bb1c3abc45a40 100644 (file)
@@ -478,7 +478,9 @@ void set_dirty_dir_page(struct inode *inode, struct page *page)
                }
        }
        list_add_tail(&new->list, head);
+#ifdef CONFIG_F2FS_STAT_FS
        sbi->n_dirty_dirs++;
+#endif
 
        BUG_ON(!S_ISDIR(inode->i_mode));
 out:
@@ -508,7 +510,9 @@ void remove_dirty_dir_inode(struct inode *inode)
                if (entry->inode == inode) {
                        list_del(&entry->list);
                        kmem_cache_free(inode_entry_slab, entry);
+#ifdef CONFIG_F2FS_STAT_FS
                        sbi->n_dirty_dirs--;
+#endif
                        break;
                }
        }