
From: Hans Reiser <reiser@namesys.com>

Unnecessary check for S_ISDIR is removed.

Signed-off-by: Vladimir V. Saveliev <vs@namesys.com>


 fs/reiser4/plugin/inode_ops.c |    9 ---------
 1 files changed, 9 deletions(-)

diff -puN fs/reiser4/plugin/inode_ops.c~reiser4-fix-link_common fs/reiser4/plugin/inode_ops.c
--- linux-2.6.14-rc5-mm1/fs/reiser4/plugin/inode_ops.c~reiser4-fix-link_common	2005-11-11 17:56:52.987771580 +0300
+++ linux-2.6.14-rc5-mm1-vs/fs/reiser4/plugin/inode_ops.c	2005-11-11 17:56:53.035781849 +0300
@@ -141,15 +141,6 @@ int link_common(struct dentry *existing,
 		return RETERR(-E_REPEAT);
 	}
 
-	/* links to directories are not allowed if file-system logical
-	   name-space should be ADG */
-	if (S_ISDIR(object->i_mode)
-	    && reiser4_is_set(parent->i_sb, REISER4_ADG)) {
-		context_set_commit_async(ctx);
-		reiser4_exit_context(ctx);
-		return RETERR(-EISDIR);
-	}
-
 	parent_dplug = inode_dir_plugin(parent);
 
 	memset(&entry, 0, sizeof entry);

_
