OSDN Git Service

btrfs: make inodes hold a ref on their roots
authorJosef Bacik <josef@toxicpanda.com>
Fri, 14 Feb 2020 21:11:43 +0000 (16:11 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:59 +0000 (17:01 +0100)
commit5c8fd99fec9d9265ed8fb732120a2ffd2bbab9b8
tree8ec83a4f945192eedd2508eefb33d6917c01c36f
parent8c38938c7bb096313ad00c2bafa82af37636b0ec
btrfs: make inodes hold a ref on their roots

If we make sure all the inodes have refs on their root we don't have to
worry about the root disappearing while we have open inodes.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/inode.c