ceph: ensure rename target dentry fails revalidation
authorSage Weil <sage@newdream.net>
Mon, 21 Dec 2009 19:42:18 +0000 (11:42 -0800)
committerSage Weil <sage@newdream.net>
Tue, 22 Dec 2009 00:39:57 +0000 (16:39 -0800)
commitc4a29f26d50bea65809ca670992108a33aa2efa6
tree20b6c85cd3d92792e855d990aca3504dbe20d294
parent2baba25019ec564cd247af74013873d69a0b8190
ceph: ensure rename target dentry fails revalidation

This works around a bug in vfs_rename_dir() that rehashes the target
dentry.  Ensure such dentries always fail revalidation by timing out the
dentry lease and kicking it out of the current directory lease gen.

This can be reverted when the vfs bug is fixed.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/inode.c