summaryrefslogtreecommitdiffstats
path: root/fs/nfs/file.c
diff options
context:
space:
mode:
authorChuck Lever2008-06-11 23:55:42 +0200
committerTrond Myklebust2008-07-09 18:09:02 +0200
commitcc0dd2d1052aede2946ad1338a8f6f5d5c604740 (patch)
treee4566796e958935c4d21988c8c43b1d798f2c1d6 /fs/nfs/file.c
parentNFS: Make nfs_llseek methods consistent (diff)
downloadkernel-qcow2-linux-cc0dd2d1052aede2946ad1338a8f6f5d5c604740.tar.gz
kernel-qcow2-linux-cc0dd2d1052aede2946ad1338a8f6f5d5c604740.tar.xz
kernel-qcow2-linux-cc0dd2d1052aede2946ad1338a8f6f5d5c604740.zip
NFS: Make nfs_open methods consistent
Clean up: Report the same debugging info and count function calls the same for files and directories in nfs_opendir() and nfs_file_open(). Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/file.c')
-rw-r--r--fs/nfs/file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index cef36362c9eb..202408d96ee8 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -119,6 +119,10 @@ nfs_file_open(struct inode *inode, struct file *filp)
{
int res;
+ dfprintk(VFS, "NFS: open file(%s/%s)\n",
+ filp->f_path.dentry->d_parent->d_name.name,
+ filp->f_path.dentry->d_name.name);
+
res = nfs_check_flags(filp->f_flags);
if (res)
return res;