Btrfs: make sure fallocate properly starts a transaction
commit88a9a7cf4ca9e83187b395aabda95f17a6407ad6
authorChris Mason <chris.mason@oracle.com>
Thu, 17 Dec 2009 20:47:17 +0000 (17 15:47 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:20:00 +0000 (13 13:20 -0700)
tree9cb0918e61c6f9c8f9ceab730302e819f7c52f71
parente4b2abc4322e89d1ce7e43c7ada5317acd80d6bc
Btrfs: make sure fallocate properly starts a transaction

commit 3a1abec9f6880cf406593c392636199ea1c6c917 upstream.

The recent patch to make fallocate enospc friendly would send
down a NULL trans handle to the allocator.  This moves the
transaction start to properly fix things.

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