projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32a4478
)
Btrfs: skip locking when searching commit root
author
Wang Shilong
<wangsl.fnst@cn.fujitsu.com>
Thu, 13 Feb 2014 03:19:47 +0000
(11:19 +0800)
committer
Josef Bacik
<jbacik@fb.com>
Mon, 10 Mar 2014 19:16:55 +0000
(15:16 -0400)
We won't change commit root, skip locking dance with commit root
when walking backrefs, this can speed up btrfs send operations.
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/backref.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/backref.c
b/fs/btrfs/backref.c
index a88da721dfc5739c937942e5cb9f81d8652b8553..860f4f22b9b065524975c945a2716381a427861c 100644
(file)
--- a/
fs/btrfs/backref.c
+++ b/
fs/btrfs/backref.c
@@
-873,8
+873,10
@@
static int find_parent_nodes(struct btrfs_trans_handle *trans,
path = btrfs_alloc_path();
if (!path)
return -ENOMEM;
- if (!trans)
+ if (!trans)
{
path->search_commit_root = 1;
+ path->skip_locking = 1;
+ }
/*
* grab both a lock on the path and a lock on the delayed ref head.