Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44a8e636 authored by Sage Weil's avatar Sage Weil Committed by Al Viro
Browse files

jfs: remove unnecessary dentry_unhash from rmdir, dir rename



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: default avatarSage Weil <sage@newdream.net>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent cf0f0536
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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);
@@ -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);