summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/reflink.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-05-21 13:24:12 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2021-05-21 13:24:12 -1000
commit45af60e7ced07ae3def41368c3d260dbf496fbce (patch)
treed455d37878ead6306098ad15d3080976c9db3ce9 /fs/btrfs/reflink.c
parent8bb14ca1714fa341d638a5d313c258feae3a8f3f (diff)
parent764c7c9a464b68f7c6a5a9ec0b923176a05e8e8f (diff)
downloadlinux-stable-45af60e7ced07ae3def41368c3d260dbf496fbce.tar.gz
linux-stable-45af60e7ced07ae3def41368c3d260dbf496fbce.tar.bz2
linux-stable-45af60e7ced07ae3def41368c3d260dbf496fbce.zip
Merge tag 'for-5.13-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fixes from David Sterba: "A few more fixes: - fix unaligned compressed writes in zoned mode - fix false positive lockdep warning when cloning inline extent - remove wrong BUG_ON in tree-log error handling" * tag 'for-5.13-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux: btrfs: zoned: fix parallel compressed writes btrfs: zoned: pass start block to btrfs_use_zone_append btrfs: do not BUG_ON in link_to_fixup_dir btrfs: release path before starting transaction when cloning inline extent
Diffstat (limited to 'fs/btrfs/reflink.c')
-rw-r--r--fs/btrfs/reflink.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/reflink.c b/fs/btrfs/reflink.c
index 3928ecc40d7b..d434dc78dadf 100644
--- a/fs/btrfs/reflink.c
+++ b/fs/btrfs/reflink.c
@@ -282,6 +282,11 @@ copy_inline_extent:
out:
if (!ret && !trans) {
/*
+ * Release path before starting a new transaction so we don't
+ * hold locks that would confuse lockdep.
+ */
+ btrfs_release_path(path);
+ /*
* No transaction here means we copied the inline extent into a
* page of the destination inode.
*