Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1516505 > unrolled thread

[PATCH] staging: lustre: o2iblnd: use bool assignment to true/false

Started byNicholas Hanley <nicholasjhanley@gmail.com>
First post2016-11-07 20:10 +0100
Last post2016-11-07 22:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] staging: lustre: o2iblnd: use bool assignment to true/false Nicholas Hanley <nicholasjhanley@gmail.com> - 2016-11-07 20:10 +0100
    Re: [PATCH] staging: lustre: o2iblnd: use bool assignment to  true/false "Dilger, Andreas" <andreas.dilger@intel.com> - 2016-11-07 22:30 +0100

#1516505 — [PATCH] staging: lustre: o2iblnd: use bool assignment to true/false

FromNicholas Hanley <nicholasjhanley@gmail.com>
Date2016-11-07 20:10 +0100
Subject[PATCH] staging: lustre: o2iblnd: use bool assignment to true/false
Message-ID<sAXsS-7ns-41@gated-at.bofh.it>
Replace 0 with false in tx_pages_mapped = 0 to be consistent with
the rest of the lustre code.

Signed-off-by: Nicholas Hanley <nicholasjhanley@gmail.com>
---
 drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c b/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
index 13235b0..e2fc65f 100644
--- a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
+++ b/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
@@ -1637,7 +1637,7 @@ int kiblnd_fmr_pool_map(struct kib_fmr_poolset *fps, struct kib_tx *tx,
 {
 	__u64 *pages = tx->tx_pages;
 	bool is_rx = (rd != tx->tx_rd);
-	bool tx_pages_mapped = 0;
+	bool tx_pages_mapped = false;
 	struct kib_fmr_pool *fpo;
 	int npages = 0;
 	__u64 version;
-- 
2.10.2

[toc] | [next] | [standalone]


#1516600 — Re: [PATCH] staging: lustre: o2iblnd: use bool assignment to true/false

From"Dilger, Andreas" <andreas.dilger@intel.com>
Date2016-11-07 22:30 +0100
SubjectRe: [PATCH] staging: lustre: o2iblnd: use bool assignment to true/false
Message-ID<sAZEl-eQ-15@gated-at.bofh.it>
In reply to#1516505
On Nov 7, 2016, at 12:01, Nicholas Hanley <nicholasjhanley@gmail.com> wrote:
> 
> Replace 0 with false in tx_pages_mapped = 0 to be consistent with
> the rest of the lustre code.
> 
> Signed-off-by: Nicholas Hanley <nicholasjhanley@gmail.com>

Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>

> ---
> drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c b/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
> index 13235b0..e2fc65f 100644
> --- a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
> +++ b/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
> @@ -1637,7 +1637,7 @@ int kiblnd_fmr_pool_map(struct kib_fmr_poolset *fps, struct kib_tx *tx,
> {
> 	__u64 *pages = tx->tx_pages;
> 	bool is_rx = (rd != tx->tx_rd);
> -	bool tx_pages_mapped = 0;
> +	bool tx_pages_mapped = false;
> 	struct kib_fmr_pool *fpo;
> 	int npages = 0;
> 	__u64 version;
> -- 
> 2.10.2
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web