linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] update key after rename
@ 2004-10-20 23:12 Roman Zippel
  0 siblings, 0 replies; only message in thread
From: Roman Zippel @ 2004-10-20 23:12 UTC (permalink / raw)
  To: Andrew Morton, linux-fsdevel


After a file has been renamed, the cached search key must be updated.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>

Index: linux-2.6/fs/hfs/dir.c
===================================================================
--- linux-2.6.orig/fs/hfs/dir.c	2004-03-11 21:43:41.000000000 +0100
+++ linux-2.6/fs/hfs/dir.c	2004-10-01 20:47:42.000000000 +0200
@@ -306,6 +306,9 @@ int hfs_rename(struct inode *old_dir, st
 	res = hfs_cat_move(old_dentry->d_inode->i_ino,
 			   old_dir, &old_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;
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-20 23:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-20 23:12 [PATCH 1/6] update key after rename Roman Zippel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).