jffs2: fix IN_DELETE_SELF on overwriting rename() killing a directory
commit22ba747f660c0acd14761628c24aa972d18058a0
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2011 19:57:47 +0000 (21 15:57 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 22 Jul 2011 23:42:11 +0000 (22 19:42 -0400)
tree8a96b344623ba66c3138bd4d6cc916f5ad3d3053
parent841590ce16c19a3ce38028adfc8b1955482ee00c
jffs2: fix IN_DELETE_SELF on overwriting rename() killing a directory

We don't generate IN_DELETE_SELF on victim of overwriting rename() if
it happens to be a directory.  Trivially fixed by doing to ->i_nlink
what we do ->pino_nlink a couple of lines later in jffs2_rename().

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