summaryrefslogtreecommitdiffstats
path: root/fs/ceph/caps.c
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2017-10-07 10:02:21 -0400
committerIlya Dryomov <idryomov@gmail.com>2017-11-13 06:11:28 -0500
commit7271efa79f8bc01694d1a9fce597088a97b3b160 (patch)
treeae629ed55cc3d9b9a2151685ab5367fc816687ea /fs/ceph/caps.c
parentb3f8d68f38a879daed1eab66c0e19bc293096d34 (diff)
ceph: fix bool initialization/comparison
Bool initializations should use true and false. Bool tests don't need comparisons. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r--fs/ceph/caps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index ff5d32cf9578..05ae1e472547 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -1712,7 +1712,7 @@ void ceph_check_caps(struct ceph_inode_info *ci, int flags,
1712 1712
1713 /* if we are unmounting, flush any unused caps immediately. */ 1713 /* if we are unmounting, flush any unused caps immediately. */
1714 if (mdsc->stopping) 1714 if (mdsc->stopping)
1715 is_delayed = 1; 1715 is_delayed = true;
1716 1716
1717 spin_lock(&ci->i_ceph_lock); 1717 spin_lock(&ci->i_ceph_lock);
1718 1718
@@ -3189,8 +3189,8 @@ static void handle_cap_flush_ack(struct inode *inode, u64 flush_tid,
3189 int dirty = le32_to_cpu(m->dirty); 3189 int dirty = le32_to_cpu(m->dirty);
3190 int cleaned = 0; 3190 int cleaned = 0;
3191 bool drop = false; 3191 bool drop = false;
3192 bool wake_ci = 0; 3192 bool wake_ci = false;
3193 bool wake_mdsc = 0; 3193 bool wake_mdsc = false;
3194 3194
3195 list_for_each_entry_safe(cf, tmp_cf, &ci->i_cap_flush_list, i_list) { 3195 list_for_each_entry_safe(cf, tmp_cf, &ci->i_cap_flush_list, i_list) {
3196 if (cf->tid == flush_tid) 3196 if (cf->tid == flush_tid)