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

We are looking up an arbitrary inode, we need to hold a ref on the root
while we're doing this.

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/file.c