public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfs: Use bool type rather than a custom boolean_t type.
@ 2012-11-12 23:36 Thiago Farina
  2012-11-13  0:24 ` Dave Chinner
  0 siblings, 1 reply; 2+ messages in thread
From: Thiago Farina @ 2012-11-12 23:36 UTC (permalink / raw)
  To: linux list; +Cc: Ben Myers, Alex Elder, xfs

[-- Attachment #1: Type: text/plain, Size: 52 bytes --]

Hi,

Please, take a look.

Patch attached.

Thanks,

[-- Attachment #2: 0001-xfs-Use-bool-type-rather-than-a-custom-boolean_t-typ.patch --]
[-- Type: application/octet-stream, Size: 1680 bytes --]

From 65e8e95caec8e187d873c6c1451ab00ff131dbe4 Mon Sep 17 00:00:00 2001
From: Thiago Farina <tfarina@chromium.org>
Date: Mon, 12 Nov 2012 21:32:59 -0200
Subject: [PATCH] xfs: Use bool type rather than a custom boolean_t type.

Signed-off-by: Thiago Farina <tfarina@chromium.org>
---
 fs/xfs/xfs_log.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index 4dad756..4e7eb76 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -118,7 +118,7 @@ xlog_verify_iclog(
 	struct xlog		*log,
 	struct xlog_in_core	*iclog,
 	int			count,
-	boolean_t		syncing);
+	bool                    syncing);
 STATIC void
 xlog_verify_tail_lsn(
 	struct xlog		*log,
@@ -3451,7 +3451,7 @@ xlog_verify_iclog(
 	struct xlog		*log,
 	struct xlog_in_core	*iclog,
 	int			count,
-	boolean_t		syncing)
+	bool                    syncing)
 {
 	xlog_op_header_t	*ophead;
 	xlog_in_core_t		*icptr;
@@ -3499,7 +3499,7 @@ xlog_verify_iclog(
 		/* clientid is only 1 byte */
 		field_offset = (__psint_t)
 			       ((xfs_caddr_t)&(ophead->oh_clientid) - base_ptr);
-		if (syncing == B_FALSE || (field_offset & 0x1ff)) {
+		if (!syncing || (field_offset & 0x1ff)) {
 			clientid = ophead->oh_clientid;
 		} else {
 			idx = BTOBBT((xfs_caddr_t)&(ophead->oh_clientid) - iclog->ic_datap);
@@ -3522,7 +3522,7 @@ xlog_verify_iclog(
 		/* check length */
 		field_offset = (__psint_t)
 			       ((xfs_caddr_t)&(ophead->oh_len) - base_ptr);
-		if (syncing == B_FALSE || (field_offset & 0x1ff)) {
+		if (!syncing || (field_offset & 0x1ff)) {
 			op_len = be32_to_cpu(ophead->oh_len);
 		} else {
 			idx = BTOBBT((__psint_t)&ophead->oh_len -
-- 
1.8.0.rc2


[-- Attachment #3: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-13  0:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-12 23:36 xfs: Use bool type rather than a custom boolean_t type Thiago Farina
2012-11-13  0:24 ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox