]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: stop passing a trans handle all around the reservation code
authorJosef Bacik <josef@redhat.com>
Tue, 30 Aug 2011 16:34:28 +0000 (12:34 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:21 +0000 (21:20 -0500)
commitcfbe3cce3348b98781e4f82ab24dbd7ac6763a0e
treeb222c6d5c55f1adf64504228fd871772a957b4f4
parenta78ccb6ca9eb5255e93d13a20a7084f3b7b04074
Btrfs: stop passing a trans handle all around the reservation code

The only thing that we need to have a trans handle for is in
reserve_metadata_bytes and thats to know how much flushing we can do.  So
instead of passing it around, just check current->journal_info for a
trans_handle so we know if we can commit a transaction to try and free up space
or not.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
(cherry picked from commit 4a92b1b8d2810db4ea0c34616b94c0b3810fa027)
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/free-space-cache.c
fs/btrfs/inode.c
fs/btrfs/relocation.c
fs/btrfs/transaction.c