]> asedeno.scripts.mit.edu Git - linux.git/commit
Revert "f2fs: handle dirty segments inside refresh_sit_entry"
authorYunlong Song <yunlong.song@huawei.com>
Mon, 30 Oct 2017 01:33:41 +0000 (09:33 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 6 Nov 2017 00:41:58 +0000 (16:41 -0800)
commit65f1b80b33378501ea552ef085e9c31739af356c
treeec87d2268fe024b06b7a9514d52396f75f226f6b
parenta0761f63ea66e5b70c77ebc4447da84eaa27ac2a
Revert "f2fs: handle dirty segments inside refresh_sit_entry"

This reverts commit 5e443818fa0b2a2845561ee25bec181424fb2889

The commit should be reverted because call sequence of below two parts
of code must be kept:
a. update sit information, it needs to be updated before segment
allocation since latter allocation may trigger SSR, and SSR allocation
needs latest valid block information of all segments.
b. update segment status, it needs to be updated after segment allocation
since we can skip updating current opened segment status.

Fixes: 5e443818fa0b ("f2fs: handle dirty segments inside refresh_sit_entry")
Suggested-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
[Jaegeuk Kim: remove refresh_sit_entry function]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/segment.c