diff options
author | Filipe Manana <fdmanana@suse.com> | 2024-02-13 15:23:35 +0000 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-03-04 16:24:52 +0100 |
commit | f33163ee4c9b6dc0e94857f9912af11ac1fc7845 (patch) | |
tree | 407831eb11e9c8e94d1b332d556959a65b201ecc /fs/btrfs/transaction.c | |
parent | f840ab792469aeb9a415f4b8f6943d9881b4d1bb (diff) | |
download | linux-stable-f33163ee4c9b6dc0e94857f9912af11ac1fc7845.tar.gz linux-stable-f33163ee4c9b6dc0e94857f9912af11ac1fc7845.tar.bz2 linux-stable-f33163ee4c9b6dc0e94857f9912af11ac1fc7845.zip |
btrfs: remove no longer used btrfs_transaction_in_commit()
The function btrfs_transaction_in_commit() is no longer used, its last
use was removed in commit 11aeb97b45ad ("btrfs: don't arbitrarily slow
down delalloc if we're committing"), so just remove it.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index cdc4bfb40928..22ca59e29948 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -1957,19 +1957,6 @@ static void update_super_roots(struct btrfs_fs_info *fs_info) super->uuid_tree_generation = root_item->generation; } -int btrfs_transaction_in_commit(struct btrfs_fs_info *info) -{ - struct btrfs_transaction *trans; - int ret = 0; - - spin_lock(&info->trans_lock); - trans = info->running_transaction; - if (trans) - ret = (trans->state >= TRANS_STATE_COMMIT_START); - spin_unlock(&info->trans_lock); - return ret; -} - int btrfs_transaction_blocked(struct btrfs_fs_info *info) { struct btrfs_transaction *trans; |