From: Hans Reiser Unnecessary check for S_ISDIR is removed. Signed-off-by: Vladimir V. Saveliev Signed-off-by: Andrew Morton --- 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 --- devel/fs/reiser4/plugin/inode_ops.c~reiser4-fix-link_common 2005-11-12 13:38:11.000000000 -0800 +++ devel-akpm/fs/reiser4/plugin/inode_ops.c 2005-11-12 13:38:11.000000000 -0800 @@ -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); _