ocfs2: remove DIR check in ocfs2_link
PATCH 1/1 ocfs2: remove DIR check in ocfs2_link
there is check on the inode whether it is a DIR in ocfs2_link().
the same check is done in vfs_link already, so remove it from ocfs2_link().
Signed-off-by Wengang Wang <[email protected]>
--- fs/ocfs2/namei.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
fs/ocfs2/namei.c +0 -3
@@ -633,9 +633,6 @@ static int ocfs2_link(struct dentry *old_dentry, old_dentry->d_name.len, old_dentry->d_name.name, dentry->d_name.len, dentry->d_name.name); -if (S_ISDIR (inode->i_mode)) -return -EPERM ; - err =ocfs2_inode_lock (dir, &parent_fe_bh,1 );if (err <0 ) {if (err != -ENOENT )
Signature · 1 line
1.6.2.5
PATCH 1/1 ocfs2: remove DIR check in ocfs2_link
Maybe so. But I see no harm leaving the check in.
Quoted 31 lines · Wengang Wang
there is check on the inode whether it is a DIR in
ocfs2_link().
the same check is done invfs_linkalready, so remove it fromocfs2_link().Signed-off-by Wengang Wang <[email protected]>---
fs/ocfs2/namei.c| 3 ---1 files changed, 0 insertions(+), 3 deletions(-)fs/ocfs2/namei.c +0
-3@@ -633,9 +633,6 @@ static int ocfs2_link(struct dentry *old_dentry, old_dentry->d_name.len, old_dentry->d_name.name, dentry->d_name.len, dentry->d_name.name); -if (S_ISDIR (inode->i_mode)) -return -EPERM ; - err =ocfs2_inode_lock (dir, &parent_fe_bh,1 );if (err <0 ) {if (err != -ENOENT )Signature · 7 lines
1.6.2.5 _______________________________________________ Ocfs2-devel mailing list Ocfs2-devel at oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-devel