diff options
author | David Sterba <dsterba@suse.com> | 2019-03-20 15:25:34 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 20:02:41 +0300 |
commit | 4884b8e8ebf54e1654bddd9721b9b00e69d6a148 (patch) | |
tree | 0dd85523478f8d61fb01fe2de893e7be35169178 /fs/btrfs/tree-log.h | |
parent | 9b7a2440ae51de73bf80e07b0465b9ed736397bd (diff) | |
download | linux-4884b8e8ebf54e1654bddd9721b9b00e69d6a148.tar.xz |
btrfs: get fs_info from trans in btrfs_need_log_full_commit
We can read fs_info from the transaction and can drop it from the
parameters.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.h')
-rw-r--r-- | fs/btrfs/tree-log.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/tree-log.h b/fs/btrfs/tree-log.h index 0fab84a8f670..bdf63d0c4128 100644 --- a/fs/btrfs/tree-log.h +++ b/fs/btrfs/tree-log.h @@ -36,10 +36,9 @@ static inline void btrfs_set_log_full_commit(struct btrfs_fs_info *fs_info, WRITE_ONCE(fs_info->last_trans_log_full_commit, trans->transid); } -static inline int btrfs_need_log_full_commit(struct btrfs_fs_info *fs_info, - struct btrfs_trans_handle *trans) +static inline int btrfs_need_log_full_commit(struct btrfs_trans_handle *trans) { - return READ_ONCE(fs_info->last_trans_log_full_commit) == + return READ_ONCE(trans->fs_info->last_trans_log_full_commit) == trans->transid; } |