diff options
Diffstat (limited to 'fs/ceph/dir.c')
| -rw-r--r-- | fs/ceph/dir.c | 4 |
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) | |||
| 975 | di = ceph_dentry(dentry); | 975 | di = ceph_dentry(dentry); |
| 976 | if (di->lease_session) { | 976 | if (di->lease_session) { |
| 977 | s = di->lease_session; | 977 | s = di->lease_session; |
| 978 | spin_lock(&s->s_cap_lock); | 978 | spin_lock(&s->s_gen_ttl_lock); |
| 979 | gen = s->s_cap_gen; | 979 | gen = s->s_cap_gen; |
| 980 | ttl = s->s_cap_ttl; | 980 | ttl = s->s_cap_ttl; |
| 981 | spin_unlock(&s->s_cap_lock); | 981 | spin_unlock(&s->s_gen_ttl_lock); |
| 982 | 982 | ||
| 983 | if (di->lease_gen == gen && | 983 | if (di->lease_gen == gen && |
| 984 | time_before(jiffies, dentry->d_time) && | 984 | time_before(jiffies, dentry->d_time) && |
