aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins
diff options
context:
space:
mode:
authorLiFan <[email protected]>2017-11-10 15:41:42 +0800
committerJaegeuk Kim <[email protected]>2017-11-10 17:35:07 -0800
commit0dd99ca76f473d488fa9acac67f6a42ca1d7d2b1 (patch)
tree12e9e5ed429bbf978ea1306490623c2e2cf194d8 /scripts/gcc-plugins
parent19526d74cfbe31b04fb81b64c2884687a321f4a0 (diff)
f2fs: validate before set/clear free nat bitmap
In flush_nat_entries, all dirty nats will be flushed and if their new address isn't NULL_ADDR, their bitmaps will be updated, the free_nid_count of the bitmaps will be increaced regardless of whether the nats have already been occupied before. This could lead to wrong free_nid_count. So this patch checks the status of the bits beforeactually set/clear them. Fixes: 586d1492f301 ("f2fs: skip scanning free nid bitmap of full NAT blocks") Signed-off-by: Fan li <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions