]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
f2fs: move f2fs_balance_fs to punch_hole
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 11 Jan 2013 05:09:38 +0000 (14:09 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 11 Jan 2013 06:09:23 +0000 (15:09 +0900)
commit9eaeba701386037cdd2ccd8bf8650feb2e2cec31
treed03afbc42a9936767b814b2b0f3f13c9784e9916
parent7d82db83165dbac8c3f6d47b73c84f38e3996e30
f2fs: move f2fs_balance_fs to punch_hole

The f2fs_fallocate() has two operations: punch_hole and expand_size.

Only in the case of punch_hole, dirty node pages can be produced, so let's
trigger f2fs_balance_fs() in this case only.
Furthermore, let's trigger it at every data truncation routine.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/file.c