Message ID | 514D1412.1090405@gmail.com |
---|---|
State | Accepted, archived |
Headers | show |
> From 596eee1f5caf23084d9b43c47b327206bd8c7ee5 Mon Sep 17 00:00:00 2001 > From: Zheng Liu <wenqing.lz@taobao.com> > Date: Sat, 23 Mar 2013 10:26:55 +0800 > Subject: [PATCH] register es shrinker before initializing per-cpu counters > > Signed-off-by: Zheng Liu <wenqing.lz@taobao.com> I've merged this change into the version of Dmitry's patch which is in the ext4 tree. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index d1ee6a8..80d96bf 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -3694,6 +3694,9 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) sbi->s_err_report.function = print_daily_error_info; sbi->s_err_report.data = (unsigned long) sb; + /* Register extent status tree shrinker */ + ext4_es_register_shrinker(sb); + err = percpu_counter_init(&sbi->s_freeclusters_counter, ext4_count_free_clusters(sb));