Commit 559206bf authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

UPSTREAM: f2fs: fix to reset fields for unloaded curseg



In f2fs_allocate_data_block(), before skip allocating new segment
for DATA_PINNED log header, it needs to tag log header as unloaded
one to avoid skipping logic in locate_dirty_segment() and
__f2fs_save_inmem_curseg().

Signed-off-by: default avatarChao Yu <chao@kernel.org>
Reviewed-by: default avatarDaeho Jeong <daehojeong@google.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit f945cebe)
Change-Id: If35aec2a075df1d59c6786e9e9d0ade1c11b38ef
parent 1f6986fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment