diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-07-12 11:07:52 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-07-15 15:21:20 -0700 |
commit | 5f281fab9b9a30073616c5e25da2111dec2fe482 (patch) | |
tree | fcb4562c2ee2ea20b313401b034b67df789f69c5 /fs/f2fs/file.c | |
parent | 0a2aa8fbb9693020b822ac7a23755591554eaea5 (diff) | |
download | linux-stable-5f281fab9b9a30073616c5e25da2111dec2fe482.tar.gz linux-stable-5f281fab9b9a30073616c5e25da2111dec2fe482.tar.bz2 linux-stable-5f281fab9b9a30073616c5e25da2111dec2fe482.zip |
f2fs: disable extent_cache for fcollapse/finsert inodes
This reduces the elapsed time to do xfstests/generic/017.
Before: 458 s
After: 390 s
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index b1dc972407e5..72e52cd15b60 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1044,6 +1044,9 @@ static int f2fs_do_collapse(struct inode *inode, pgoff_t start, pgoff_t end) f2fs_balance_fs(sbi, true); f2fs_lock_op(sbi); + + f2fs_drop_extent_tree(inode); + ret = __exchange_data_block(inode, inode, end, start, nrpages - end, true); f2fs_unlock_op(sbi); return ret; @@ -1278,6 +1281,8 @@ static int f2fs_insert_range(struct inode *inode, loff_t offset, loff_t len) idx -= nr; f2fs_lock_op(sbi); + f2fs_drop_extent_tree(inode); + ret = __exchange_data_block(inode, inode, idx, idx + delta, nr, false); f2fs_unlock_op(sbi); |