]> git.hungrycats.org Git - linux/commit
btrfs: drop the transaction handle from the prealloc helpers
authorTal Zussman <tz2294@columbia.edu>
Thu, 17 Sep 2026 04:00:02 +0000 (00:00 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 17 Sep 2026 17:49:47 +0000 (19:49 +0200)
commitd4676aeeb64faca1a162b1cffa88097e7e599a4b
treefbf2936e69dbb9bd600228b66ac5759e927285b2
parent8edbb950f8abdf20cf27511bcef79b4df5b45fc6
btrfs: drop the transaction handle from the prealloc helpers

The v1 space cache created its inode during the transaction commit, and
btrfs_prealloc_file_range_trans() existed so that preallocation could
reuse the open handle. It was the only caller passing a transaction, so
__btrfs_prealloc_file_range() and insert_prealloc_file_extent() now
always start their own. Fold the wrapper into
btrfs_prealloc_file_range() and drop the parameter.

Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Tal Zussman <tz2294@columbia.edu>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c