]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: hold a ref on the root in open_ctree
authorJosef Bacik <josef@toxicpanda.com>
Fri, 24 Jan 2020 14:32:54 +0000 (09:32 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:32 +0000 (17:01 +0100)
commit64935d1a3d8660c6774823cb3f3f9013d2ac3484
tree3a60556c8ce681569acd91d146de3021f5427df4
parentc971e2224b8f03bff69fc61ff5e6c1c5c491a250
btrfs: hold a ref on the root in open_ctree

We lookup the fs_root and put it in our fs_info directly, we should hold
a ref on this root for the lifetime of the fs_info.

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