aboutsummaryrefslogtreecommitdiff
path: root/fs/orangefs/Kconfig
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2023-07-26 16:57:12 +0100
committerDavid Sterba <dsterba@suse.com>2023-08-21 14:52:18 +0200
commit6705b48a50d7cad55b763ae4c9544875a9727f80 (patch)
treef438ab0236fa3c6f849b1cc86447e58f4757fdc5 /fs/orangefs/Kconfig
parent2ee70ed19ccd9c95c188816b65dacf3fca1f5565 (diff)
btrfs: avoid start and commit empty transaction when starting qgroup rescan
When starting a qgroup rescan, we try to join a running transaction, with btrfs_join_transaction(), and then commit the transaction. However using btrfs_join_transaction() will result in creating a new transaction in case there isn't any running or if there's an existing one already committing. This is pointless as we only need to attach to an existing one that is not committing and in case there's an existing one committing, wait for its commit to complete. Creating and committing an empty transaction is wasteful, pointless IO and unnecessary rotation of the backup roots. So use btrfs_attach_transaction_barrier() instead, to avoid creating and committing empty transactions. Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/orangefs/Kconfig')
0 files changed, 0 insertions, 0 deletions