summaryrefslogtreecommitdiffstats
path: root/fs/ceph/dir.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-02-27 17:23:15 +0100
committerArnd Bergmann <arnd@arndb.de>2012-02-27 17:23:21 +0100
commita173fc693b25216c5c834978f4fafd731fd4ff94 (patch)
treef75c2fa106217cc3afd1bde6803ca77fe953bbcf /fs/ceph/dir.c
parentMerge branch 'mxs/boards' of git://git.linaro.org/people/shawnguo/linux-2.6 i... (diff)
parentARM: kirkwood: convert uart0 to devicetree. (diff)
downloadlinux-a173fc693b25216c5c834978f4fafd731fd4ff94.tar.xz
linux-a173fc693b25216c5c834978f4fafd731fd4ff94.zip
Merge branch 'kirkwood/board' into next/boards
* kirkwood/board: (2 commits) ARM: kirkwood: convert uart0 to devicetree. ARM: kirkwood: add dreamplug (fdt) support. Series sent by email from Jason Cooper <jason@lakedaemon.net> Update to Linux 3.3-rc3 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r--fs/ceph/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 618246bc2196..3e8094be4604 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -975,10 +975,10 @@ static int dentry_lease_is_valid(struct dentry *dentry)
di = ceph_dentry(dentry);
if (di->lease_session) {
s = di->lease_session;
- spin_lock(&s->s_cap_lock);
+ spin_lock(&s->s_gen_ttl_lock);
gen = s->s_cap_gen;
ttl = s->s_cap_ttl;
- spin_unlock(&s->s_cap_lock);
+ spin_unlock(&s->s_gen_ttl_lock);
if (di->lease_gen == gen &&
time_before(jiffies, dentry->d_time) &&