diff --git a/[refs] b/[refs] index ceec5955dd7f..6bc9e06bc69f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 58dadcdbc2584db050969f9781727fc5a3f618db +refs/heads/master: 5dabd69515765156605b09261abf969236a77803 diff --git a/trunk/fs/ocfs2/namei.c b/trunk/fs/ocfs2/namei.c index ab5a2272d0eb..d5d808fe0140 100644 --- a/trunk/fs/ocfs2/namei.c +++ b/trunk/fs/ocfs2/namei.c @@ -997,7 +997,7 @@ static int ocfs2_rename(struct inode *old_dir, * * And that's why, just like the VFS, we need a file system * rename lock. */ - if (old_dentry != new_dentry) { + if (old_dir != new_dir && S_ISDIR(old_inode->i_mode)) { status = ocfs2_rename_lock(osb); if (status < 0) { mlog_errno(status);