diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2012-12-19 16:25:21 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2012-12-26 10:39:52 +0900 |
commit | 1efef832020ef392deb2cd3d74e0c316711245be (patch) | |
tree | f9b777202cb0cca945c42aa4aec0ffe0743776ab /fs/nfsd/vfs.h | |
parent | 30f0c75858c46a0273ccb838de401b1f5fdebe6f (diff) |
f2fs: do f2fs_balance_fs in front of dir operations
In order to conserve free sections to deal with the worst-case scenarios, f2fs
should be able to freeze all the directory operations especially when there are
not enough free sections. The f2fs_balance_fs() is for this use.
When FS utilization becomes almost 100%, directory operations can be failed due
to -ENOSPC frequently, which produces some dirty node pages occasionally.
Previously, in such a case, f2fs_balance_fs() is not able to be triggered since
it is triggered only if the directory operation ends up with success.
So, this patch triggers f2fs_balance_fs() at first before handling directory
operations.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/nfsd/vfs.h')
0 files changed, 0 insertions, 0 deletions