]> git.ipfire.org Git - people/ms/linux.git/commit - fs/bad_inode.c
bad_inode: add missing i_op initializers
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 9 Dec 2016 10:57:43 +0000 (11:57 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 9 Dec 2016 10:57:43 +0000 (11:57 +0100)
commit3f9ca75516a7e581ff803f751a869c1da5ae5fa5
tree14538f685941bef33a3c02814b7f693fe184591d
parent3e5de27e940d00d8d504dfb96625fb654f641509
bad_inode: add missing i_op initializers

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>
Cc: <stable@vger.kernel.org>
fs/bad_inode.c