summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2008-10-10 01:22:23 +0200
committerSage Weil <sage@newdream.net>2008-10-13 21:02:27 +0200
commitd4024afe6592891fd7a39900469dda21ee5474dc (patch)
tree09c69568ca716b29bc2b7bf567dad34cbb33ff7e
parentfilestore: use BTRFS_IOC_SYNC instead of fsync (diff)
downloadceph-d4024afe6592891fd7a39900469dda21ee5474dc.tar.xz
ceph-d4024afe6592891fd7a39900469dda21ee5474dc.zip
client: fix && || parens
-rw-r--r--src/client/Client.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Client.cc b/src/client/Client.cc
index 03d91e05303..4dce066c503 100644
--- a/src/client/Client.cc
+++ b/src/client/Client.cc
@@ -4244,7 +4244,7 @@ int Client::ll_lookup(vinodeno_t parent, const char *name, struct stat *attr, in
diri->dir->dentries.count(dname)) {
Dentry *dn = diri->dir->dentries[dname];
if ((dn->lease_mds >= 0 && dn->lease_ttl > now) ||
- diri->lease_mds >= 0 && diri->lease_ttl > now && (diri->lease_mask & CEPH_LOCK_ICONTENT)) {
+ (diri->lease_mds >= 0 && diri->lease_ttl > now && (diri->lease_mask & CEPH_LOCK_ICONTENT))) {
touch_dn(dn);
in = dn->inode;
dout(1) << "ll_lookup " << parent << " " << name << " -> have valid lease on dentry|ICONTENT" << dendl;