]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: warn for any missed cleanup at btrfs_close_one_device
authorAnand Jain <anand.jain@oracle.com>
Tue, 4 Apr 2023 14:55:11 +0000 (22:55 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:23 +0000 (18:01 +0200)
commit1f16033c992971d5a630a038bd0ca8a5067527ef
treecab02f1f705772fa76ebe63608ddf53f0ff8676e
parent7533583e125d65bac1435410ecb56433e95eade0
btrfs: warn for any missed cleanup at btrfs_close_one_device

During my recent search for the root cause of a reported bug, I realized
that it's a good idea to issue a warning for missed cleanup instead of
using debug-only assertions. Since most installations run with debug off,
missed cleanups and premature calls to close could go unnoticed. However,
these issues are serious enough to warrant reporting and fixing.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c