diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2017-02-23 19:55:05 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-02-27 09:59:52 -0800 |
commit | 3f2be04304cf10f2ef074399f8dd565bd00ddcae (patch) | |
tree | 548f77dfff93831cfb7be3709fc89a014fc59d56 /fs/f2fs | |
parent | 6bfaf7b150f7dba04024b7b6420773c09606538c (diff) | |
download | op-kernel-dev-3f2be04304cf10f2ef074399f8dd565bd00ddcae.zip op-kernel-dev-3f2be04304cf10f2ef074399f8dd565bd00ddcae.tar.gz |
f2fs: avoid m_flags overlay when allocating more data blocks
When more than one data blocks are allocated, the F2FS_MAP_UNWRITTEN/MAPPED
flags will be overlapped by F2FS_MAP_NEW at the later times.
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index f72493d..80f9863 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -867,7 +867,7 @@ next_block: } if (err) goto sync_out; - map->m_flags = F2FS_MAP_NEW; + map->m_flags |= F2FS_MAP_NEW; blkaddr = dn.data_blkaddr; } else { if (flag == F2FS_GET_BLOCK_BMAP) { |