]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix leak of subvolume writers counter
authorRobbie Ko <robbieko@synology.com>
Fri, 7 Oct 2016 02:01:29 +0000 (10:01 +0800)
committerFilipe Manana <fdmanana@suse.com>
Fri, 24 Feb 2017 00:38:01 +0000 (00:38 +0000)
commit980d155aeb7c4d6a550de78db12eac734f0c1d3f
treecf195dc2a83a87b24a495a8cb7357f17f690f117
parent9b0ae6333ddf74d2348c8d9b63c79792580ae5af
Btrfs: fix leak of subvolume writers counter

When falling back from a nocow write to a regular cow write, we were
leaking the subvolume writers counter in 2 situations, preventing
snapshot creation from ever completing in the future, as it waits
for that counter to go down to zero before the snapshot creation
starts.

Signed-off-by: Robbie Ko <robbieko@synology.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
[Improved changelog and subject]
Signed-off-by: Filipe Manana <fdmanana@suse.com>
fs/btrfs/inode.c