aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2017-03-25 17:28:10 +0800
committerIlya Dryomov <idryomov@gmail.com>2017-05-04 09:19:19 +0200
commit8242c9f35ae77ca21e6cf79827787789a988f44c (patch)
treed8ef3cde5a0011c2178a82ec293a16cd071a9fc8 /fs/ceph
parentlibceph: convert ceph_pagelist.refcnt from atomic_t to refcount_t (diff)
downloadwireguard-linux-8242c9f35ae77ca21e6cf79827787789a988f44c.tar.xz
wireguard-linux-8242c9f35ae77ca21e6cf79827787789a988f44c.zip
ceph: fix wrong check in ceph_renew_caps()
Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 26cc95421cca..ab4823e3e0d5 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -192,7 +192,7 @@ int ceph_renew_caps(struct inode *inode)
spin_lock(&ci->i_ceph_lock);
wanted = __ceph_caps_file_wanted(ci);
if (__ceph_is_any_real_caps(ci) &&
- (!(wanted & CEPH_CAP_ANY_WR) == 0 || ci->i_auth_cap)) {
+ (!(wanted & CEPH_CAP_ANY_WR) || ci->i_auth_cap)) {
int issued = __ceph_caps_issued(ci, NULL);
spin_unlock(&ci->i_ceph_lock);
dout("renew caps %p want %s issued %s updating mds_wanted\n",