commit | b0feb9d96e71a88d7eec56f41b8f23e92af889b0 | [log] [tgz] |
---|---|---|
author | Miao Xie <miaox@cn.fujitsu.com> | Wed May 15 07:48:20 2013 +0000 |
committer | Josef Bacik <jbacik@fusionio.com> | Fri Jun 14 11:29:38 2013 -0400 |
tree | e808deeb4f3b33636d6481ff1bc88ae269880fa3 | |
parent | cb517eabba4f109810dba2e5f37b0dcf22103065 [diff] |
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>