]> git.hungrycats.org Git - linux/commit
btrfs: drop the transaction handle from the prealloc helpers
authorTal Zussman <tz2294@columbia.edu>
Thu, 15 Oct 2026 14:43:21 +0000 (10:43 -0400)
committerDavid Sterba <dsterba@suse.com>
Fri, 16 Oct 2026 17:06:56 +0000 (19:06 +0200)
commit5134fd8e09ce6ec2b6cbc15888f826d904bab34d
treee61e2eab4d919921d2cd11bee7163a8ce03040a5
parent86a6b5afc1caff872e6e4cc1445848912898372b
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: LLM
Signed-off-by: Tal Zussman <tz2294@columbia.edu>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c