summaryrefslogtreecommitdiff
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2010-01-29 15:38:19 -0800
committerThomas Gleixner <tglx@linutronix.de>2010-04-27 17:32:28 +0200
commitf0a176c5482950a40ac31113816b981d4fe6069c (patch)
treea48a5c340310bf98b4604bb6e669e82a73388eb3 /fs/dcache.c
parent787deaa77c09c3746dd2b998997109f2463190fa (diff)
downloadlwn-f0a176c5482950a40ac31113816b981d4fe6069c.tar.gz
lwn-f0a176c5482950a40ac31113816b981d4fe6069c.zip
fs-vfsmount_lock-scale
Use a brlock for the vfsmount lock. Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index 116fd33f564b..761f35a32f0f 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -1911,7 +1911,7 @@ char *__d_path(const struct path *path, struct path *root,
char *end = buffer + buflen;
char *retval;
- spin_lock(&vfsmount_lock);
+ vfsmount_read_lock();
prepend(&end, &buflen, "\0", 1);
if (d_unlinked(dentry) &&
(prepend(&end, &buflen, " (deleted)", 10) != 0))
@@ -1947,7 +1947,7 @@ char *__d_path(const struct path *path, struct path *root,
}
out:
- spin_unlock(&vfsmount_lock);
+ vfsmount_read_unlock();
return retval;
global_root: