Skip to contentSkip to conversation

NFS: nfs_update_inode: print current and new inode size in debug output

PATCH New Harshula Jayasuriya 1 participant 1 message May 23, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFS: nfs_update_inode: print current and new inode size in debug output

Hi Trond,

In nfs_update_inode debug output, print the current and new inode size when the file size changes on the NFS server.

---
fs/nfs/inode.c | 8 ++++++--

 1 files changed, 6 insertions(+), 2 deletions(-)
fs/nfs/inode.c +6 -2
index 57bb31a..2d54457 100644
@@ -1298,8 +1298,12 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr)
 				i_size_write(inode, new_isize);
 				invalid |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_DATA;
 			}
-			dprintk("NFS: isize change on server for file %s/%ld\n",
-					inode->i_sb->s_id, inode->i_ino);
+			dprintk("NFS: isize change on server for file %s/%ld "
+					"(%Ld to %Ld)\n",
+					inode->i_sb->s_id,
+					inode->i_ino,
+					(long long)cur_isize,
+					(long long)new_isize);
 		}
 	} else
 		invalid |= save_cache_validity & (NFS_INO_INVALID_ATTR
Signature · 1 line
1.7.4.4