]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5911c2afbf21d6238b1937259901e72eb977d3f9
tree8ec83a4f945192eedd2508eefb33d6917c01c36f
parentbe9c38ec51e6c7d4c61f3f24a0a0a59e28753717
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