public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 3/8] 64-bit i_version: afs fixes
@ 2007-11-29 20:52 akpm
  2007-11-29 22:23 ` David Howells
  0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2007-11-29 20:52 UTC (permalink / raw)
  To: cmm; +Cc: tytso, linux-ext4, akpm, dhowells, jean-noel.cordenner

From: Andrew Morton <akpm@linux-foundation.org>

Please grep the whole tree and look for any similar bugs which this patch
introduces.

Cc: Jean Noel Cordenner <jean-noel.cordenner@bull.net>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/afs/dir.c   |    9 +++++----
 fs/afs/inode.c |    3 ++-
 2 files changed, 7 insertions(+), 5 deletions(-)

diff -puN fs/afs/dir.c~64-bit-i_version-afs-fixes fs/afs/dir.c
--- a/fs/afs/dir.c~64-bit-i_version-afs-fixes
+++ a/fs/afs/dir.c
@@ -546,11 +546,11 @@ static struct dentry *afs_lookup(struct 
 	dentry->d_op = &afs_fs_dentry_operations;
 
 	d_add(dentry, inode);
-	_leave(" = 0 { vn=%u u=%u } -> { ino=%lu v=%lu }",
+	_leave(" = 0 { vn=%u u=%u } -> { ino=%lu v=%llu }",
 	       fid.vnode,
 	       fid.unique,
 	       dentry->d_inode->i_ino,
-	       dentry->d_inode->i_version);
+	       (unsigned long long)dentry->d_inode->i_version);
 
 	return NULL;
 }
@@ -630,9 +630,10 @@ static int afs_d_revalidate(struct dentr
 		 * been deleted and replaced, and the original vnode ID has
 		 * been reused */
 		if (fid.unique != vnode->fid.unique) {
-			_debug("%s: file deleted (uq %u -> %u I:%lu)",
+			_debug("%s: file deleted (uq %u -> %u I:%llu)",
 			       dentry->d_name.name, fid.unique,
-			       vnode->fid.unique, dentry->d_inode->i_version);
+			       vnode->fid.unique,
+			       (unsigned long long)dentry->d_inode->i_version);
 			spin_lock(&vnode->lock);
 			set_bit(AFS_VNODE_DELETED, &vnode->flags);
 			spin_unlock(&vnode->lock);
diff -puN fs/afs/inode.c~64-bit-i_version-afs-fixes fs/afs/inode.c
--- a/fs/afs/inode.c~64-bit-i_version-afs-fixes
+++ a/fs/afs/inode.c
@@ -301,7 +301,8 @@ int afs_getattr(struct vfsmount *mnt, st
 
 	inode = dentry->d_inode;
 
-	_enter("{ ino=%lu v=%lu }", inode->i_ino, inode->i_version);
+	_enter("{ ino=%lu v=%llu }", inode->i_ino,
+		(unsigned long long)inode->i_version);
 
 	generic_fillattr(inode, stat);
 	return 0;
_

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

* Re: [patch 3/8] 64-bit i_version: afs fixes
  2007-11-29 20:52 [patch 3/8] 64-bit i_version: afs fixes akpm
@ 2007-11-29 22:23 ` David Howells
  0 siblings, 0 replies; 2+ messages in thread
From: David Howells @ 2007-11-29 22:23 UTC (permalink / raw)
  To: akpm; +Cc: dhowells, cmm, tytso, linux-ext4, jean-noel.cordenner

akpm@linux-foundation.org wrote:

> -	_leave(" = 0 { vn=%u u=%u } -> { ino=%lu v=%lu }",
> +	_leave(" = 0 { vn=%u u=%u } -> { ino=%lu v=%llu }",
>  	       fid.vnode,
>  	       fid.unique,
>  	       dentry->d_inode->i_ino,
> -	       dentry->d_inode->i_version);
> +	       (unsigned long long)dentry->d_inode->i_version);

Hmmm...  In AFS's case this is overkill...  The value contained in i_version
is going to be a 32-bit number because that's all the protocol supports.

David

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

end of thread, other threads:[~2007-11-29 22:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-29 20:52 [patch 3/8] 64-bit i_version: afs fixes akpm
2007-11-29 22:23 ` David Howells

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