Skip to contentSkip to conversation

fs/ioctl.c: set local var past_eof to true instead of integer 1 in __generic_block_fiemap

PATCH New Wang Sheng-Hui 1 participant 1 message Jul 11, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/ioctl.c: set local var past_eof to true instead of integer 1 in __generic_block_fiemap

In function __generic_block_fiemap, local var past_eof is declared as bool, so use 'true' instead of number 1 here.

---
 fs/ioctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ioctl.c +1 -1
index 29167be..e42abb0 100644
@@ -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
Signature · 1 line
1.7.1