]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fs-writeback: Add helper function to start writeback if idle
authorEric Sandeen <sandeen@redhat.com>
Wed, 23 Dec 2009 12:57:07 +0000 (07:57 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:36 +0000 (07:41 -0700)
commitb78a38dca6e04634ddc718e315712b45abcf92fd
treef687e82bf0c9acbc4bee632271d41a11a30fd418
parentafd9fc6961f208b539d6accd49927639d964be23
fs-writeback: Add helper function to start writeback if idle

commit 17bd55d037a02b04d9119511cfd1a4b985d20f63 upstream.

ext4, at least, would like to start pushing on writeback if it starts
to get close to ENOSPC when reserving worst-case blocks for delalloc
writes.  Writing out delalloc data will convert those worst-case
predictions into usually smaller actual usage, freeing up space
before we hit ENOSPC based on this speculation.

Thanks to Jens for the suggestion for the helper function,
& the naming help.

I've made the helper return status on whether writeback was
started even though I don't plan to use it in the ext4 patch;
it seems like it would be potentially useful to test this
in some cases.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Acked-by: Jan Kara <jack@suse.cz>
Cc: maximilian attems <max@stro.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/fs-writeback.c
include/linux/writeback.h