Commit 2900ba7f authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds

[PATCH] hfs: update key after rename

After a file has been renamed, the cached search key must be updated.
Signed-off-by: default avatarRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 458be4f5
...@@ -306,6 +306,9 @@ int hfs_rename(struct inode *old_dir, struct dentry *old_dentry, ...@@ -306,6 +306,9 @@ int hfs_rename(struct inode *old_dir, struct dentry *old_dentry,
res = hfs_cat_move(old_dentry->d_inode->i_ino, res = hfs_cat_move(old_dentry->d_inode->i_ino,
old_dir, &old_dentry->d_name, old_dir, &old_dentry->d_name,
new_dir, &new_dentry->d_name); new_dir, &new_dentry->d_name);
if (!res)
hfs_cat_build_key((btree_key *)&HFS_I(old_dentry->d_inode)->cat_key,
new_dir->i_ino, &new_dentry->d_name);
return res; return res;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment