aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorWeston Andros Adamson <dros@netapp.com>2012-03-06 21:58:20 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-03-07 10:34:27 -0500
commit4f1abd226d80ef763c50e3930b369b63dffbb312 (patch)
tree6dfbcc0046ef135fadd2b6585e864c067b3bf1a6 /fs/nfs
parentd8e0539ebdff5ff27fa7eb019715d9dfb5171a3b (diff)
NFS: add fh_crc to debug output
Print the filehandle crc in two debug messages Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/inode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 0337554f1561..70e25c9c5670 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -390,9 +390,10 @@ nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr)
390 unlock_new_inode(inode); 390 unlock_new_inode(inode);
391 } else 391 } else
392 nfs_refresh_inode(inode, fattr); 392 nfs_refresh_inode(inode, fattr);
393 dprintk("NFS: nfs_fhget(%s/%Ld ct=%d)\n", 393 dprintk("NFS: nfs_fhget(%s/%Ld fh_crc=0x%08x ct=%d)\n",
394 inode->i_sb->s_id, 394 inode->i_sb->s_id,
395 (long long)NFS_FILEID(inode), 395 (long long)NFS_FILEID(inode),
396 nfs_display_fhandle_hash(fh),
396 atomic_read(&inode->i_count)); 397 atomic_read(&inode->i_count));
397 398
398out: 399out:
@@ -1274,8 +1275,9 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr)
1274 unsigned long now = jiffies; 1275 unsigned long now = jiffies;
1275 unsigned long save_cache_validity; 1276 unsigned long save_cache_validity;
1276 1277
1277 dfprintk(VFS, "NFS: %s(%s/%ld ct=%d info=0x%x)\n", 1278 dfprintk(VFS, "NFS: %s(%s/%ld fh_crc=0x%08x ct=%d info=0x%x)\n",
1278 __func__, inode->i_sb->s_id, inode->i_ino, 1279 __func__, inode->i_sb->s_id, inode->i_ino,
1280 nfs_display_fhandle_hash(NFS_FH(inode)),
1279 atomic_read(&inode->i_count), fattr->valid); 1281 atomic_read(&inode->i_count), fattr->valid);
1280 1282
1281 if ((fattr->valid & NFS_ATTR_FATTR_FILEID) && nfsi->fileid != fattr->fileid) 1283 if ((fattr->valid & NFS_ATTR_FATTR_FILEID) && nfsi->fileid != fattr->fileid)