diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-10-14 20:51:23 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-23 21:11:08 +0100 |
commit | 7c45729a4d6d1c90879e6c5c2df325c2f6db7191 (patch) | |
tree | 25a2eba8a74807d3c05d023e34b983e5bb3b3871 /fs/f2fs/extent_cache.c | |
parent | f2fs: use BIO_MAX_PAGES for bio allocation (diff) | |
download | linux-7c45729a4d6d1c90879e6c5c2df325c2f6db7191.tar.xz linux-7c45729a4d6d1c90879e6c5c2df325c2f6db7191.zip |
f2fs: keep dirty inodes selectively for checkpoint
This is to avoid no free segment bug during checkpoint caused by a number of
dirty inodes.
The case was reported by Chao like this.
1. mount with lazytime option
2. fill 4k file until disk is full
3. sync filesystem
4. read all files in the image
5. umount
In this case, we actually don't need to flush dirty inode to inode page during
checkpoint.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/extent_cache.c')
-rw-r--r-- | fs/f2fs/extent_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/extent_cache.c b/fs/f2fs/extent_cache.c index 2b06d4fcd954..4db44da7ef69 100644 --- a/fs/f2fs/extent_cache.c +++ b/fs/f2fs/extent_cache.c @@ -172,7 +172,7 @@ static void __drop_largest_extent(struct inode *inode, if (fofs < largest->fofs + largest->len && fofs + len > largest->fofs) { largest->len = 0; - f2fs_mark_inode_dirty_sync(inode); + f2fs_mark_inode_dirty_sync(inode, true); } } |