diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-06-21 00:23:41 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-07-26 14:54:26 +0300 |
commit | 64b63580728ef19137d35363a1c28794b70ad416 (patch) | |
tree | f78944d4590ee07bbdea3559712adc4973946d3a /fs/btrfs/transaction.c | |
parent | 05f9a780129c81dfd70ae827a9abb15c7e6321a8 (diff) | |
download | linux-64b63580728ef19137d35363a1c28794b70ad416.tar.xz |
btrfs: add btrfs_trans_handle->fs_info pointer
btrfs_trans_handle->root is documented as for use for confirming
that the root passed in to start the transaction is the same as the
one ending it. It's used in several places when an fs_info pointer
is needed, so let's just add an fs_info pointer directly. Eventually,
the root pointer can be removed.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index d986447d19a4..41e14c632c3f 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -561,6 +561,7 @@ again: h->transaction = cur_trans; h->root = root; h->use_count = 1; + h->fs_info = root->fs_info; h->type = type; h->can_flush_pending_bgs = true; |