]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: don't try to commit in btrfs_block_rsv_check
authorJosef Bacik <josef@redhat.com>
Mon, 8 Aug 2011 17:33:21 +0000 (13:33 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:15 +0000 (21:20 -0500)
commitd760a24e7c1b628f358be257ec0d441e775e47ba
tree661b6180ee484d270e5d4348ae1fe1f93e8a20f3
parente10cbe59b868cf0ad10875c6098559e312acbb24
Btrfs: don't try to commit in btrfs_block_rsv_check

We will try and reserve metadata bytes in btrfs_block_rsv_check and if we cannot
because we have a transaction open it will return EAGAIN, so we do not need to
try and commit the transaction again.

Signed-off-by: Josef Bacik <josef@redhat.com>
(cherry picked from commit 13553e5221d6901a33b3f2157a389de085c161fe)
fs/btrfs/extent-tree.c