summaryrefslogtreecommitdiffstats
path: root/xlators/performance
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2018-08-14 11:44:54 -0700
committerAmar Tumballi <amarts@redhat.com>2018-08-16 06:02:06 +0000
commite765dfa0704bed07eaf003c007d9ab192cdd8aa4 (patch)
tree3d3ecc1457dc3e63591fceaaef7198c6aced8401 /xlators/performance
parent4fe662be4143629e405b1718836be6c990fcebbb (diff)
performance/md-cache: Use bitwise AND instead of logical AND
Addresses CID: 1394640 Change-Id: I1139222301569d17760df74624acd301594063b9 updates: bz#789278 Signed-off-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/performance')
-rw-r--r--xlators/performance/md-cache/src/md-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c
index bcd5e85b580..a1280d6a2cc 100644
--- a/xlators/performance/md-cache/src/md-cache.c
+++ b/xlators/performance/md-cache/src/md-cache.c
@@ -939,7 +939,7 @@ mdc_inode_iatt_invalidate (xlator_t *this, inode_t *inode)
if (mdc_inode_ctx_get (this, inode, &mdc) != 0)
goto out;
- gen = mdc_get_generation (this, inode) && 0xffffffff;
+ gen = mdc_get_generation (this, inode) & 0xffffffff;
LOCK (&mdc->lock);
{