diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2007-04-26 03:29:02 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-05-09 17:58:01 -0400 |
commit | 7a13e932281e7042a592f4f14db0b348199e7aac (patch) | |
tree | 474245a3ed19f26528fd8b1bdda946fa9cd751d7 | |
parent | fee7f23feaf0845fdfd47d20cddc75652552fbb8 (diff) |
NFS: Kill the obsolete NFS_PARANOIA
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>
-rw-r--r-- | fs/nfs/dir.c | 17 | ||||
-rw-r--r-- | fs/nfs/getroot.c | 1 | ||||
-rw-r--r-- | fs/nfs/inode.c | 3 | ||||
-rw-r--r-- | fs/nfs/nfs2xdr.c | 1 | ||||
-rw-r--r-- | fs/nfs/pagelist.c | 7 |
5 files changed, 2 insertions, 27 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 469cf66e1dc0..3df428816559 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -38,7 +38,6 @@ | |||
38 | #include "delegation.h" | 38 | #include "delegation.h" |
39 | #include "iostat.h" | 39 | #include "iostat.h" |
40 | 40 | ||
41 | #define NFS_PARANOIA 1 | ||
42 | /* #define NFS_DEBUG_VERBOSE 1 */ | 41 | /* #define NFS_DEBUG_VERBOSE 1 */ |
43 | 42 | ||
44 | static int nfs_opendir(struct inode *, struct file *); | 43 | static int nfs_opendir(struct inode *, struct file *); |
@@ -1362,11 +1361,6 @@ static int nfs_sillyrename(struct inode *dir, struct dentry *dentry) | |||
1362 | atomic_read(&dentry->d_count)); | 1361 | atomic_read(&dentry->d_count)); |
1363 | nfs_inc_stats(dir, NFSIOS_SILLYRENAME); | 1362 | nfs_inc_stats(dir, NFSIOS_SILLYRENAME); |
1364 | 1363 | ||
1365 | #ifdef NFS_PARANOIA | ||
1366 | if (!dentry->d_inode) | ||
1367 | printk("NFS: silly-renaming %s/%s, negative dentry??\n", | ||
1368 | dentry->d_parent->d_name.name, dentry->d_name.name); | ||
1369 | #endif | ||
1370 | /* | 1364 | /* |
1371 | * We don't allow a dentry to be silly-renamed twice. | 1365 | * We don't allow a dentry to be silly-renamed twice. |
1372 | */ | 1366 | */ |
@@ -1683,16 +1677,9 @@ static int nfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
1683 | new_inode = NULL; | 1677 | new_inode = NULL; |
1684 | /* instantiate the replacement target */ | 1678 | /* instantiate the replacement target */ |
1685 | d_instantiate(new_dentry, NULL); | 1679 | d_instantiate(new_dentry, NULL); |
1686 | } else if (atomic_read(&new_dentry->d_count) > 1) { | 1680 | } else if (atomic_read(&new_dentry->d_count) > 1) |
1687 | /* dentry still busy? */ | 1681 | /* dentry still busy? */ |
1688 | #ifdef NFS_PARANOIA | ||
1689 | printk("nfs_rename: target %s/%s busy, d_count=%d\n", | ||
1690 | new_dentry->d_parent->d_name.name, | ||
1691 | new_dentry->d_name.name, | ||
1692 | atomic_read(&new_dentry->d_count)); | ||
1693 | #endif | ||
1694 | goto out; | 1682 | goto out; |
1695 | } | ||
1696 | } else | 1683 | } else |
1697 | drop_nlink(new_inode); | 1684 | drop_nlink(new_inode); |
1698 | 1685 | ||
diff --git a/fs/nfs/getroot.c b/fs/nfs/getroot.c index 234778576f09..d1cbf0a0fbb2 100644 --- a/fs/nfs/getroot.c +++ b/fs/nfs/getroot.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include "internal.h" | 41 | #include "internal.h" |
42 | 42 | ||
43 | #define NFSDBG_FACILITY NFSDBG_CLIENT | 43 | #define NFSDBG_FACILITY NFSDBG_CLIENT |
44 | #define NFS_PARANOIA 1 | ||
45 | 44 | ||
46 | /* | 45 | /* |
47 | * get an NFS2/NFS3 root dentry from the root filehandle | 46 | * get an NFS2/NFS3 root dentry from the root filehandle |
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 1e9a915d1fea..2a3fd9573207 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -48,7 +48,6 @@ | |||
48 | #include "internal.h" | 48 | #include "internal.h" |
49 | 49 | ||
50 | #define NFSDBG_FACILITY NFSDBG_VFS | 50 | #define NFSDBG_FACILITY NFSDBG_VFS |
51 | #define NFS_PARANOIA 1 | ||
52 | 51 | ||
53 | static void nfs_invalidate_inode(struct inode *); | 52 | static void nfs_invalidate_inode(struct inode *); |
54 | static int nfs_update_inode(struct inode *, struct nfs_fattr *); | 53 | static int nfs_update_inode(struct inode *, struct nfs_fattr *); |
@@ -1075,10 +1074,8 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr) | |||
1075 | /* | 1074 | /* |
1076 | * Big trouble! The inode has become a different object. | 1075 | * Big trouble! The inode has become a different object. |
1077 | */ | 1076 | */ |
1078 | #ifdef NFS_PARANOIA | ||
1079 | printk(KERN_DEBUG "%s: inode %ld mode changed, %07o to %07o\n", | 1077 | printk(KERN_DEBUG "%s: inode %ld mode changed, %07o to %07o\n", |
1080 | __FUNCTION__, inode->i_ino, inode->i_mode, fattr->mode); | 1078 | __FUNCTION__, inode->i_ino, inode->i_mode, fattr->mode); |
1081 | #endif | ||
1082 | out_err: | 1079 | out_err: |
1083 | /* | 1080 | /* |
1084 | * No need to worry about unhashing the dentry, as the | 1081 | * No need to worry about unhashing the dentry, as the |
diff --git a/fs/nfs/nfs2xdr.c b/fs/nfs/nfs2xdr.c index abd9f8b48943..cd3ca7b5d3db 100644 --- a/fs/nfs/nfs2xdr.c +++ b/fs/nfs/nfs2xdr.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include "internal.h" | 26 | #include "internal.h" |
27 | 27 | ||
28 | #define NFSDBG_FACILITY NFSDBG_XDR | 28 | #define NFSDBG_FACILITY NFSDBG_XDR |
29 | /* #define NFS_PARANOIA 1 */ | ||
30 | 29 | ||
31 | /* Mapping from NFS error code to "errno" error code. */ | 30 | /* Mapping from NFS error code to "errno" error code. */ |
32 | #define errno_NFSERR_IO EIO | 31 | #define errno_NFSERR_IO EIO |
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index 388950118f59..e12054c86d0d 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c | |||
@@ -20,8 +20,6 @@ | |||
20 | 20 | ||
21 | #include "internal.h" | 21 | #include "internal.h" |
22 | 22 | ||
23 | #define NFS_PARANOIA 1 | ||
24 | |||
25 | static struct kmem_cache *nfs_page_cachep; | 23 | static struct kmem_cache *nfs_page_cachep; |
26 | 24 | ||
27 | static inline struct nfs_page * | 25 | static inline struct nfs_page * |
@@ -167,11 +165,6 @@ nfs_release_request(struct nfs_page *req) | |||
167 | if (!atomic_dec_and_test(&req->wb_count)) | 165 | if (!atomic_dec_and_test(&req->wb_count)) |
168 | return; | 166 | return; |
169 | 167 | ||
170 | #ifdef NFS_PARANOIA | ||
171 | BUG_ON (!list_empty(&req->wb_list)); | ||
172 | BUG_ON (NFS_WBACK_BUSY(req)); | ||
173 | #endif | ||
174 | |||
175 | /* Release struct file or cached credential */ | 168 | /* Release struct file or cached credential */ |
176 | nfs_clear_request(req); | 169 | nfs_clear_request(req); |
177 | put_nfs_open_context(req->wb_context); | 170 | put_nfs_open_context(req->wb_context); |