|
@@ -38,7 +38,6 @@
|
|
#include "delegation.h"
|
|
#include "delegation.h"
|
|
#include "iostat.h"
|
|
#include "iostat.h"
|
|
|
|
|
|
-#define NFS_PARANOIA 1
|
|
|
|
/* #define NFS_DEBUG_VERBOSE 1 */
|
|
/* #define NFS_DEBUG_VERBOSE 1 */
|
|
|
|
|
|
static int nfs_opendir(struct inode *, struct file *);
|
|
static int nfs_opendir(struct inode *, struct file *);
|
|
@@ -1362,11 +1361,6 @@ static int nfs_sillyrename(struct inode *dir, struct dentry *dentry)
|
|
atomic_read(&dentry->d_count));
|
|
atomic_read(&dentry->d_count));
|
|
nfs_inc_stats(dir, NFSIOS_SILLYRENAME);
|
|
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.
|
|
* We don't allow a dentry to be silly-renamed twice.
|
|
*/
|
|
*/
|
|
@@ -1683,16 +1677,9 @@ static int nfs_rename(struct inode *old_dir, struct dentry *old_dentry,
|
|
new_inode = NULL;
|
|
new_inode = NULL;
|
|
/* instantiate the replacement target */
|
|
/* instantiate the replacement target */
|
|
d_instantiate(new_dentry, NULL);
|
|
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;
|
|
goto out;
|
|
- }
|
|
|
|
} else
|
|
} else
|
|
drop_nlink(new_inode);
|
|
drop_nlink(new_inode);
|
|
|
|
|