kernel-ark/fs/ocfs2
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
..
cluster Drivers: clean up direct setting of the name of a kset 2007-10-12 14:51:02 -07:00
dlm Slab API: remove useless ctor parameter and reorder parameters 2007-10-17 08:42:45 -07:00
alloc.c ocfs2: Write support for directories with inline data 2007-10-12 11:54:41 -07:00
alloc.h ocfs2: Write support for directories with inline data 2007-10-12 11:54:41 -07:00
aops.c ocfs2: convert to new aops 2007-10-16 09:42:58 -07:00
aops.h ocfs2: convert to new aops 2007-10-16 09:42:58 -07:00
buffer_head_io.c
buffer_head_io.h
dcache.c
dcache.h
dir.c Fix f_version type: should be u64 instead of unsigned long 2007-10-17 08:42:53 -07:00
dir.h ocfs2: Rename cleanups 2007-10-12 11:54:38 -07:00
dlmglue.c ocfs2: Structure updates for inline data 2007-10-12 11:54:39 -07:00
dlmglue.h ocfs2: Structure updates for inline data 2007-10-12 11:54:39 -07:00
endian.h
export.c ocfs2: Provide convenience function for ino lookup 2007-10-12 11:54:38 -07:00
export.h
extent_map.c ocfs2: Read support for inline data 2007-10-12 11:54:39 -07:00
extent_map.h
file.c ocfs2: convert to new aops 2007-10-16 09:42:58 -07:00
file.h ocfs2: move nonsparse hole-filling into ocfs2_write_begin() 2007-10-12 11:54:35 -07:00
heartbeat.c
heartbeat.h
inode.c ocfs2: Write support for inline data 2007-10-12 11:54:40 -07:00
inode.h ocfs2: Structure updates for inline data 2007-10-12 11:54:39 -07:00
ioctl.c
ioctl.h
journal.c ocfs2: Remove open coded readdir() 2007-10-12 11:54:37 -07:00
journal.h ocfs2: Write support for inline data 2007-10-12 11:54:40 -07:00
localalloc.c
localalloc.h
Makefile
mmap.c
mmap.h
namei.c ocfs2: Write support for directories with inline data 2007-10-12 11:54:41 -07:00
namei.h ocfs2: Move directory manipulation code into dir.c 2007-10-12 11:54:36 -07:00
ocfs1_fs_compat.h
ocfs2_fs.h ocfs2: Structure updates for inline data 2007-10-12 11:54:39 -07:00
ocfs2_lockid.h
ocfs2.h ocfs2: Structure updates for inline data 2007-10-12 11:54:39 -07:00
slot_map.c
slot_map.h
suballoc.c
suballoc.h
super.c Slab API: remove useless ctor parameter and reorder parameters 2007-10-17 08:42:45 -07:00
super.h
symlink.c
symlink.h
sysfile.c ocfs2: Provide convenience function for ino lookup 2007-10-12 11:54:38 -07:00
sysfile.h
uptodate.c
uptodate.h
ver.c
ver.h
vote.c
vote.h