]> Git Repo - linux.git/commit
btrfs: consolidate the error handling in run_delalloc_nocow
authorChristoph Hellwig <[email protected]>
Mon, 24 Jul 2023 14:22:40 +0000 (07:22 -0700)
committerDavid Sterba <[email protected]>
Mon, 21 Aug 2023 12:54:47 +0000 (14:54 +0200)
commit38dc88890de6cae3db5a33ece287e56fc9cc4ce6
treeb8a12a4d1bc3cedca8ed417a84ebb5b57aab5b8c
parent18f62b86c4ea943256f8962ecd0cb013c97b4e0f
btrfs: consolidate the error handling in run_delalloc_nocow

Share the calls to extent_clear_unlock_delalloc for btrfs_path allocation
failure handling and the normal exit path.

This relies on btrfs_free_path ignoring a NULL pointer, and the
initialization of cur_offset to start at the beginning of the function.

Reviewed-by: Boris Burkov <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
fs/btrfs/inode.c
This page took 0.053783 seconds and 4 git commands to generate.