Skip to content

Commit

Permalink
jfs: remove unnecessary dentry_unhash from rmdir, dir rename
Browse files Browse the repository at this point in the history
jfs does not have problems with references to unlinked directories.

CC: Dave Kleikamp <shaggy@kernel.org>
CC: jfs-discussion@lists.sourceforge.net
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Sage Weil authored and Al Viro committed May 28, 2011
1 parent cf0f053 commit 44a8e63
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/jfs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,6 @@ static int jfs_rmdir(struct inode *dip, struct dentry *dentry)

jfs_info("jfs_rmdir: dip:0x%p name:%s", dip, dentry->d_name.name);

dentry_unhash(dentry);

/* Init inode for quota operations. */
dquot_initialize(dip);
dquot_initialize(ip);
Expand Down Expand Up @@ -1097,9 +1095,6 @@ static int jfs_rename(struct inode *old_dir, struct dentry *old_dentry,
jfs_info("jfs_rename: %s %s", old_dentry->d_name.name,
new_dentry->d_name.name);

if (new_dentry->d_inode && S_ISDIR(new_dentry->d_inode->i_mode))
dentry_unhash(new_dentry);

dquot_initialize(old_dir);
dquot_initialize(new_dir);

Expand Down

0 comments on commit 44a8e63

Please sign in to comment.