]> git.baikalelectronics.ru Git - kernel.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)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:12:44 +0000 (15:12 -0400)
commit3224c8b8f3b71e86d2d6408090d1f512ba3f1388
treedd01cff1987b8178be84f8b750951497b7f525a7
parentaa9e3869af9dc3633514e9dbb3365f5547a7d549
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>
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