diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-16 11:06:50 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-18 13:57:29 -0700 |
commit | 41382ec43255b502321c3c27f1347efeb3279290 (patch) | |
tree | b3d07c0a23995736755b1aefa8bcd4930a26cd6c /fs/f2fs/checkpoint.c | |
parent | 1beba1b3a953107c3ff5448ab4e4297db4619c76 (diff) | |
download | blackbird-obmc-linux-41382ec43255b502321c3c27f1347efeb3279290.tar.gz blackbird-obmc-linux-41382ec43255b502321c3c27f1347efeb3279290.zip |
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 447e2a986560..cf79598aec0e 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); |