bad_inode: add missing i_op initializers
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 9 Dec 2016 10:57:43 +0000 (11:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jan 2017 07:32:24 +0000 (08:32 +0100)
commit6195cd1a9628281a10a7132ae0f664a496b2b33c
tree7fb57a73a64952d004f8748be03ad4b443ecd6b9
parentafd2a1994ea4e37fb602410b350827d5909714fe
bad_inode: add missing i_op initializers

commit 3f9ca75516a7e581ff803f751a869c1da5ae5fa5 upstream.

New inode operations were forgotten to be added to bad_inode.  Most of the
time the op is checked for NULL before being called but marking the inode
bad and the check can race (very unlikely).

However in case of ->get_link() only DCACHE_SYMLINK_TYPE is checked before
calling the op, so there's no race and will definitely oops when trying to
follow links on such a beast.

Also remove comments about extinct ops.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/bad_inode.c