]> git.baikalelectronics.ru Git - kernel.git/commit
jffs2: reduce the breakage on recovery from halfway failed rename()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 8 Mar 2016 04:07:10 +0000 (23:07 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 8 Mar 2016 04:07:10 +0000 (23:07 -0500)
commit9f0779fceb1e754a5d1c557de8d3bc290d8d5d7b
tree4043f57ba651a15b78e190d65da120791c085318
parentd5da41e22d365291f0b22a1786be9306e5d206f6
jffs2: reduce the breakage on recovery from halfway failed rename()

d_instantiate(new_dentry, old_inode) is absolutely wrong thing to
do - it will oops if new_dentry used to be positive, for starters.
What we need is d_invalidate() the target and be done with that.

Cc: stable@vger.kernel.org # v3.18+
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/jffs2/dir.c