kernel-ark/include
Mathieu Desnoyers 2b47c3611d Fix f_version type: should be u64 instead of unsigned long
Fix f_version type: should be u64 instead of long

There is a type inconsistency between struct inode i_version and struct file
f_version.

fs.h:

struct inode
  u64                     i_version;

and

struct file
  unsigned long           f_version;

Users do:

fs/ext3/dir.c:

if (filp->f_version != inode->i_version) {

So why isn't f_version a u64 ? It becomes a problem if versions gets
higher than 2^32 and we are on an architecture where longs are 32 bits.

This patch changes the f_version type to u64, and updates the users accordingly.

It applies to 2.6.23-rc2-mm2.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Martin Bligh <mbligh@google.com>
Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
Cc: Al Viro <viro@ftp.linux.org.uk>
Cc: <linux-ext4@vger.kernel.org>
Cc: Mark Fasheh <mark.fasheh@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-17 08:42:53 -07:00
..
acpi
asm-alpha kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-arm remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-arm26 softlockup: make asm/irq_regs.h available on every platform 2007-10-17 08:42:47 -07:00
asm-avr32 remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-blackfin remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-cris remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-frv remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-generic unexport asm/shmparam.h 2007-10-17 08:42:47 -07:00
asm-h8300 remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-ia64 kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-m32r remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-m68k remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-m68knommu kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-mips remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-parisc remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-powerpc remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-ppc softlockup: make asm/irq_regs.h available on every platform 2007-10-17 08:42:47 -07:00
asm-s390 remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-sh remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-sh64 remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-sparc kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-sparc64 kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-um uml: style fixes in FP code 2007-10-16 09:43:07 -07:00
asm-v850 remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-x86 remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-xtensa remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
crypto
keys
linux Fix f_version type: should be u64 instead of unsigned long 2007-10-17 08:42:53 -07:00
math-emu
media
mtd
net
pcmcia
rdma
rxrpc
scsi do not export /usr/include/scsi in make headers_install 2007-10-17 08:42:52 -07:00
sound
video pm2fb: hardware cursor support for the Permedia2 2007-10-16 09:43:18 -07:00
xen
Kbuild do not export /usr/include/scsi in make headers_install 2007-10-17 08:42:52 -07:00