summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-02 02:55:51 +0200
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2018-08-08 22:50:03 +0200
commit10db5b7a2f44379f63c159a77456d4d22df53c51 (patch)
tree656135e307bd517f01cd012856049ac7bf208831 /fs/nfs
parentpnfs: pnfs_find_lseg() should not check NFS_LSEG_LAYOUTRETURN (diff)
downloadlinux-10db5b7a2f44379f63c159a77456d4d22df53c51.tar.xz
linux-10db5b7a2f44379f63c159a77456d4d22df53c51.zip
pnfs: Use true and false for boolean values
Return statements in functions returning bool should use true or false instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/pnfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index 8f03bdb191aa..20b3f9f80d74 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -1628,7 +1628,7 @@ pnfs_lseg_range_match(const struct pnfs_layout_range *ls_range,
(range->iomode != ls_range->iomode &&
strict_iomode) ||
!pnfs_lseg_range_intersecting(ls_range, range))
- return 0;
+ return false;
/* range1 covers only the first byte in the range */
range1 = *range;