]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: reserve space for O_TMPFILE orphan item deletion
authorOmar Sandoval <osandov@fb.com>
Fri, 11 May 2018 20:13:40 +0000 (13:13 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:24:00 +0000 (18:24 +0200)
commitf0a1bcbcb2a6895f5a8dbccae3c9b6ded2aeab38
tree8dc4f332bfdd5c412ecb0b71906d098dc153e66b
parent4b31891dba9d67e5579c7c92cb99ce59b1fe3ce3
Btrfs: reserve space for O_TMPFILE orphan item deletion

btrfs_link() calls btrfs_orphan_del() if it's linking an O_TMPFILE but
it doesn't reserve space to do so. Even before the removal of the
orphan_block_rsv it wasn't using it.

Fixes: 55b6b76ac47d ("Btrfs: implement inode_operations callback tmpfile")
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c