From: Wang Sheng-Hui <shhuiw@gmail.com>
To: Alexander Viro <viro@zeniv.linux.org.uk>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] fs/ioctl.c: set local var past_eof to true instead of integer 1 in __generic_block_fiemap
Date: Wed, 11 Jul 2012 14:45:07 +0800 [thread overview]
Message-ID: <4FFD20F3.7030906@gmail.com> (raw)
In function __generic_block_fiemap, local var past_eof is declared
as bool, so use 'true' instead of number 1 here.
Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
---
fs/ioctl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/ioctl.c b/fs/ioctl.c
index 29167be..e42abb0 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -308,7 +308,7 @@ int __generic_block_fiemap(struct inode *inode,
*/
if (!past_eof &&
blk_to_logical(inode, start_blk) >= isize)
- past_eof = 1;
+ past_eof = true;
/*
* First hole after going past the EOF, this is our
--
1.7.1
reply other threads:[~2012-07-11 6:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FFD20F3.7030906@gmail.com \
--to=shhuiw@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.