diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-16 18:06:50 (GMT) |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-18 20:57:29 (GMT) |
commit | 41382ec43255b502321c3c27f1347efeb3279290 (patch) | |
tree | b3d07c0a23995736755b1aefa8bcd4930a26cd6c /fs/f2fs/checkpoint.c | |
parent | 1beba1b3a953107c3ff5448ab4e4297db4619c76 (diff) | |
download | linux-41382ec43255b502321c3c27f1347efeb3279290.tar.xz |
f2fs: use percpu_counter for alloc_valid_block_count
This patch uses percpu_count for sbi->alloc_valid_block_count.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r-- | fs/f2fs/checkpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 447e2a9..cf79598 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -1079,7 +1079,7 @@ static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) /* update user_block_counts */ sbi->last_valid_block_count = sbi->total_valid_block_count; - sbi->alloc_valid_block_count = 0; + percpu_counter_set(&sbi->alloc_valid_block_count, 0); /* Here, we only have one bio having CP pack */ sync_meta_pages(sbi, META_FLUSH, LONG_MAX); |