diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2008-06-11 17:55:58 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-07-09 12:09:04 -0400 |
commit | 6da24bc9cfc645c619992e39aab09747164c9f14 (patch) | |
tree | a2d092a395d219db6b251d4d7f481ca0f9f7ecb0 /fs/nfs/dir.c | |
parent | b7eaefaa8722fd98e5c2632640d1abd2b0c83e84 (diff) |
NFS: Use NFSDBG_FILE for all fops
Clean up: some fops use NFSDBG_FILE, some use NFSDBG_VFS. Let's use
NFSDBG_FILE for all fops, and consistently report file names instead
of inode numbers.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index c962233c094a..b1940660502f 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -133,7 +133,7 @@ nfs_opendir(struct inode *inode, struct file *filp) | |||
133 | { | 133 | { |
134 | int res; | 134 | int res; |
135 | 135 | ||
136 | dfprintk(VFS, "NFS: open dir(%s/%s)\n", | 136 | dfprintk(FILE, "NFS: open dir(%s/%s)\n", |
137 | filp->f_path.dentry->d_parent->d_name.name, | 137 | filp->f_path.dentry->d_parent->d_name.name, |
138 | filp->f_path.dentry->d_name.name); | 138 | filp->f_path.dentry->d_name.name); |
139 | 139 | ||
@@ -531,7 +531,7 @@ static int nfs_readdir(struct file *filp, void *dirent, filldir_t filldir) | |||
531 | struct nfs_fattr fattr; | 531 | struct nfs_fattr fattr; |
532 | long res; | 532 | long res; |
533 | 533 | ||
534 | dfprintk(VFS, "NFS: readdir(%s/%s) starting at cookie %Lu\n", | 534 | dfprintk(FILE, "NFS: readdir(%s/%s) starting at cookie %llu\n", |
535 | dentry->d_parent->d_name.name, dentry->d_name.name, | 535 | dentry->d_parent->d_name.name, dentry->d_name.name, |
536 | (long long)filp->f_pos); | 536 | (long long)filp->f_pos); |
537 | nfs_inc_stats(inode, NFSIOS_VFSGETDENTS); | 537 | nfs_inc_stats(inode, NFSIOS_VFSGETDENTS); |
@@ -598,7 +598,7 @@ out: | |||
598 | unlock_kernel(); | 598 | unlock_kernel(); |
599 | if (res > 0) | 599 | if (res > 0) |
600 | res = 0; | 600 | res = 0; |
601 | dfprintk(VFS, "NFS: readdir(%s/%s) returns %ld\n", | 601 | dfprintk(FILE, "NFS: readdir(%s/%s) returns %ld\n", |
602 | dentry->d_parent->d_name.name, dentry->d_name.name, | 602 | dentry->d_parent->d_name.name, dentry->d_name.name, |
603 | res); | 603 | res); |
604 | return res; | 604 | return res; |
@@ -609,7 +609,7 @@ static loff_t nfs_llseek_dir(struct file *filp, loff_t offset, int origin) | |||
609 | struct dentry *dentry = filp->f_path.dentry; | 609 | struct dentry *dentry = filp->f_path.dentry; |
610 | struct inode *inode = dentry->d_inode; | 610 | struct inode *inode = dentry->d_inode; |
611 | 611 | ||
612 | dfprintk(VFS, "NFS: llseek dir(%s/%s, %lld, %d)\n", | 612 | dfprintk(FILE, "NFS: llseek dir(%s/%s, %lld, %d)\n", |
613 | dentry->d_parent->d_name.name, | 613 | dentry->d_parent->d_name.name, |
614 | dentry->d_name.name, | 614 | dentry->d_name.name, |
615 | offset, origin); | 615 | offset, origin); |
@@ -640,7 +640,7 @@ out: | |||
640 | */ | 640 | */ |
641 | static int nfs_fsync_dir(struct file *filp, struct dentry *dentry, int datasync) | 641 | static int nfs_fsync_dir(struct file *filp, struct dentry *dentry, int datasync) |
642 | { | 642 | { |
643 | dfprintk(VFS, "NFS: fsync dir(%s/%s) datasync %d\n", | 643 | dfprintk(FILE, "NFS: fsync dir(%s/%s) datasync %d\n", |
644 | dentry->d_parent->d_name.name, dentry->d_name.name, | 644 | dentry->d_parent->d_name.name, dentry->d_name.name, |
645 | datasync); | 645 | datasync); |
646 | 646 | ||