]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit289f0f00e5d6187bb245b5824035f02f6b54d555
tree14538f685941bef33a3c02814b7f693fe184591d
parent96b2e94fb5673e0e12dc63bda5f798c2bfe40606
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