]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: put allocate_segment after refresh_sit_entry
authorYunlong Song <yunlong.song@huawei.com>
Tue, 21 Feb 2017 08:59:26 +0000 (16:59 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 24 Feb 2017 17:37:30 +0000 (09:37 -0800)
commit3bbcf34455a36da89d733814c5ded57045bfa41e
tree9318f009c56dbca7fdb55e7406c073f7459b68c8
parent878ec79d603320cfb3ff5f60cd746ddfe7803ac7
f2fs: put allocate_segment after refresh_sit_entry

SIT information should be updated before segment allocation, since SSR needs
latest valid block information. Current code does not update the old_blkaddr
info in sit_entry, so adjust the allocate_segment to its proper location. Commit
dcb4f3490d66f333a15161b9e5a62a4c6eb0872e ("f2fs: handle dirty segments inside
refresh_sit_entry") puts it into wrong location.

Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c