fix IN_DELETE_SELF on overwriting rename() on ramfs et.al.
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2011 19:49:09 +0000 (15:49 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 22 Jul 2011 23:42:11 +0000 (19:42 -0400)
commit841590ce16c19a3ce38028adfc8b1955482ee00c
tree83f20931de0103f1b3b60f6ba4b8aa8490c08084
parented70afcd6e795e3de98df56f1cd0f898fbf641a7
fix IN_DELETE_SELF on overwriting rename() on ramfs et.al.

On ramfs and other simple_rename() users IN_DELETE_SELF is not generated
for victim of overwriting rename() if it's is a directory.  Works on
most of the local filesystems and really trivial to fix...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/libfs.c