]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: btrfs_check_shared should manage its own transaction
authorEdmund Nadolski <enadolski@suse.com>
Thu, 29 Jun 2017 03:56:58 +0000 (21:56 -0600)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 12:19:53 +0000 (14:19 +0200)
commitbb739cf08e8f32ea0b4a6d2ae22466488182c2fe
treece7db405a42cbe74ba5f5d782ee26cf90860fbd2
parente0c476b128e37daa37d630dd68da5681e9c16bab
btrfs: btrfs_check_shared should manage its own transaction

Commit afce772e87c3 ("btrfs: fix check_shared for fiemap ioctl") added
transaction semantics around calls to btrfs_check_shared() in order to
provide accurate accounting of delayed refs. The transaction management
should be done inside btrfs_check_shared(), so that callers do not need
to manage transactions individually.

Signed-off-by: Edmund Nadolski <enadolski@suse.com>
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c
fs/btrfs/backref.h
fs/btrfs/extent_io.c