f2fs: call f2fs_balance_fs only when node was changed
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 22 Dec 2015 21:23:35 +0000 (13:23 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 30 Dec 2015 18:14:09 +0000 (10:14 -0800)
commit2a3407607028f7c780f1c20faa4e922bf631d340
tree77385c73948461f554fcc71e831e1bf81bb5295f
parent3104af35eb6a2452ccc9912997e7728777100de2
f2fs: call f2fs_balance_fs only when node was changed

If user tries to update or read data, we don't need to call f2fs_balance_fs
which triggers f2fs_gc, which increases unnecessary long latency.

Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/file.c
fs/f2fs/inline.c