]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: introduce grab/put functions for the root of the fs/file tree
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 15 May 2013 07:48:20 +0000 (07:48 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:38 +0000 (11:29 -0400)
commite79f9cdad8133a60de504335bd6219a1e9c08e5d
treee808deeb4f3b33636d6481ff1bc88ae269880fa3
parent406a55e140825540e1fb1a0c4092dabb97cdf266
Btrfs: introduce grab/put functions for the root of the fs/file tree

The grab/put funtions will be used in the next patch, which need grab
the root object and ensure it is not freed. We use reference counter
instead of the srcu lock is to aovid blocking the memory reclaim task,
which invokes synchronize_srcu().

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent-tree.c