OSDN Git Service

btrfs: add a BTRFS_FS_NEED_TRANS_COMMIT flag
authorJosef Bacik <josef@toxicpanda.com>
Wed, 19 Oct 2022 14:50:55 +0000 (10:50 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:42 +0000 (18:00 +0100)
commitc52cc7b7acfb3290a0268538b82ac7cf18df7ca4
treea156dd94c88b3c1cf3e04a70fd86585923bfda70
parent7966a6b5959bbeb38b35d12b7a533c1dee8c432c
btrfs: add a BTRFS_FS_NEED_TRANS_COMMIT flag

Currently we are only using fs_info->pending_changes to indicate that we
need a transaction commit.  The original users for this were removed
years ago and we don't have more usage in sight, so this is the only
remaining reason to have this field.  Add a flag so we can remove this
code.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/fs.h
fs/btrfs/super.c
fs/btrfs/sysfs.c
fs/btrfs/transaction.c