[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200804220514.45191.vda.linux@googlemail.com>
Date: Tue, 22 Apr 2008 05:14:45 +0200
From: Denys Vlasenko <vda.linux@...glemail.com>
To: David Chinner <dgc@....com>
Cc: Eric Sandeen <sandeen@...deen.net>, Adrian Bunk <bunk@...nel.org>,
Alan Cox <alan@...rguk.ukuu.org.uk>,
Shawn Bohrer <shawn.bohrer@...il.com>,
Ingo Molnar <mingo@...e.hu>,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Arjan van de Ven <arjan@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>
Subject: [PATCH] xfs: use smaller int param in call to xfs_flush_pages
Hi David,
xfs_flush_pages() flags parameter is declared as uint64_t, but
code never pass values which do not fit into 32 bits.
All callsites sans one pass zero, and the last one passes
XFS_B_DELWRI, XFS_B_ASYNC or zero.
These values are defined in enum xfs_buf_flags_t and they
all fit in 32 bits.
This patch changes type of the parameter and one variable
which used to pass it to unsigned int.
Code size difference on 32-bit x86:
# size */fs/xfs/xfs.o
text data bss dec hex filename
390567 2748 1708 395023 6070f linux-2.6-xfs2-TEST/fs/xfs/xfs.o
390507 2748 1708 394963 606d3 linux-2.6-xfs3-TEST/fs/xfs/xfs.o
Compile-tested only.
Signed-off-by: Denys Vlasenko <vda.linux@...glemail.com>
--
vda
View attachment "xfs2-xfs_flush_pages-use_smaller_int_param.patch" of type "text/x-diff" (1080 bytes)
Powered by blists - more mailing lists