Skip to content

Commit

Permalink
NFS: Kill the obsolete NFS_PARANOIA
Browse files Browse the repository at this point in the history
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Jesper Juhl authored and Trond Myklebust committed May 9, 2007
1 parent fee7f23 commit 7a13e93
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 27 deletions.
17 changes: 2 additions & 15 deletions fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include "delegation.h"
#include "iostat.h"

#define NFS_PARANOIA 1
/* #define NFS_DEBUG_VERBOSE 1 */

static int nfs_opendir(struct inode *, struct file *);
Expand Down Expand Up @@ -1362,11 +1361,6 @@ static int nfs_sillyrename(struct inode *dir, struct dentry *dentry)
atomic_read(&dentry->d_count));
nfs_inc_stats(dir, NFSIOS_SILLYRENAME);

#ifdef NFS_PARANOIA
if (!dentry->d_inode)
printk("NFS: silly-renaming %s/%s, negative dentry??\n",
dentry->d_parent->d_name.name, dentry->d_name.name);
#endif
/*
* We don't allow a dentry to be silly-renamed twice.
*/
Expand Down Expand Up @@ -1683,16 +1677,9 @@ static int nfs_rename(struct inode *old_dir, struct dentry *old_dentry,
new_inode = NULL;
/* instantiate the replacement target */
d_instantiate(new_dentry, NULL);
} else if (atomic_read(&new_dentry->d_count) > 1) {
/* dentry still busy? */
#ifdef NFS_PARANOIA
printk("nfs_rename: target %s/%s busy, d_count=%d\n",
new_dentry->d_parent->d_name.name,
new_dentry->d_name.name,
atomic_read(&new_dentry->d_count));
#endif
} else if (atomic_read(&new_dentry->d_count) > 1)
/* dentry still busy? */
goto out;
}
} else
drop_nlink(new_inode);

Expand Down
1 change: 0 additions & 1 deletion fs/nfs/getroot.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include "internal.h"

#define NFSDBG_FACILITY NFSDBG_CLIENT
#define NFS_PARANOIA 1

/*
* get an NFS2/NFS3 root dentry from the root filehandle
Expand Down
3 changes: 0 additions & 3 deletions fs/nfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#include "internal.h"

#define NFSDBG_FACILITY NFSDBG_VFS
#define NFS_PARANOIA 1

static void nfs_invalidate_inode(struct inode *);
static int nfs_update_inode(struct inode *, struct nfs_fattr *);
Expand Down Expand Up @@ -1075,10 +1074,8 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr)
/*
* Big trouble! The inode has become a different object.
*/
#ifdef NFS_PARANOIA
printk(KERN_DEBUG "%s: inode %ld mode changed, %07o to %07o\n",
__FUNCTION__, inode->i_ino, inode->i_mode, fattr->mode);
#endif
out_err:
/*
* No need to worry about unhashing the dentry, as the
Expand Down
1 change: 0 additions & 1 deletion fs/nfs/nfs2xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "internal.h"

#define NFSDBG_FACILITY NFSDBG_XDR
/* #define NFS_PARANOIA 1 */

/* Mapping from NFS error code to "errno" error code. */
#define errno_NFSERR_IO EIO
Expand Down
7 changes: 0 additions & 7 deletions fs/nfs/pagelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#include "internal.h"

#define NFS_PARANOIA 1

static struct kmem_cache *nfs_page_cachep;

static inline struct nfs_page *
Expand Down Expand Up @@ -167,11 +165,6 @@ nfs_release_request(struct nfs_page *req)
if (!atomic_dec_and_test(&req->wb_count))
return;

#ifdef NFS_PARANOIA
BUG_ON (!list_empty(&req->wb_list));
BUG_ON (NFS_WBACK_BUSY(req));
#endif

/* Release struct file or cached credential */
nfs_clear_request(req);
put_nfs_open_context(req->wb_context);
Expand Down

0 comments on commit 7a13e93

Please sign in to comment.