]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Btrfs: Make fallocate(2) more ENOSPC friendly
authorYan, Zheng <zheng.yan@oracle.com>
Thu, 12 Nov 2009 09:34:52 +0000 (09:34 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:19:55 +0000 (13:19 -0700)
commit16fdd7c37a308318379ec5ecc3fa1c32716df411
tree642adb24deb1256d66f57d58cea13b62a3714bbb
parent9202f1111ac52cfe02f3813352c1b0481394e1da
Btrfs: Make fallocate(2) more ENOSPC friendly

commit 5a303d5d4b8055d2e5a03e92d04745bfc5881a22 upstream.

fallocate(2) may allocate large number of file extents, so it's not
good to do it in a single transaction. This patch make fallocate(2)
start a new transaction for each file extents it allocates.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/btrfs/inode.c