checkpoint.c (f573018491fd823e909d587cfe16758f3dd9e6d6) | checkpoint.c (41382ec43255b502321c3c27f1347efeb3279290) |
---|---|
1/* 2 * fs/f2fs/checkpoint.c 3 * 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com/ 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 1065 unchanged lines hidden (view full) --- 1074 if (unlikely(f2fs_cp_error(sbi))) 1075 return -EIO; 1076 1077 filemap_fdatawait_range(NODE_MAPPING(sbi), 0, LLONG_MAX); 1078 filemap_fdatawait_range(META_MAPPING(sbi), 0, LLONG_MAX); 1079 1080 /* update user_block_counts */ 1081 sbi->last_valid_block_count = sbi->total_valid_block_count; | 1/* 2 * fs/f2fs/checkpoint.c 3 * 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com/ 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 1065 unchanged lines hidden (view full) --- 1074 if (unlikely(f2fs_cp_error(sbi))) 1075 return -EIO; 1076 1077 filemap_fdatawait_range(NODE_MAPPING(sbi), 0, LLONG_MAX); 1078 filemap_fdatawait_range(META_MAPPING(sbi), 0, LLONG_MAX); 1079 1080 /* update user_block_counts */ 1081 sbi->last_valid_block_count = sbi->total_valid_block_count; |
1082 sbi->alloc_valid_block_count = 0; | 1082 percpu_counter_set(&sbi->alloc_valid_block_count, 0); |
1083 1084 /* Here, we only have one bio having CP pack */ 1085 sync_meta_pages(sbi, META_FLUSH, LONG_MAX); 1086 1087 /* wait for previous submitted meta pages writeback */ 1088 wait_on_all_pages_writeback(sbi); 1089 1090 /* --- 120 unchanged lines hidden --- | 1083 1084 /* Here, we only have one bio having CP pack */ 1085 sync_meta_pages(sbi, META_FLUSH, LONG_MAX); 1086 1087 /* wait for previous submitted meta pages writeback */ 1088 wait_on_all_pages_writeback(sbi); 1089 1090 /* --- 120 unchanged lines hidden --- |