staging: erofs: harden inode lookup for 32-bit platforms
authorGao Xiang <gaoxiang25@huawei.com>
Tue, 9 Oct 2018 14:07:13 +0000 (22:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 11:15:23 +0000 (13:15 +0200)
commit2abd7814138774eb56319e9dcc0abd08ece45424
treebf91da2cc23e7d06823f6812bfbfb296c167171e
parent10844575cc1224b7697d5b430e361c287c406d3f
staging: erofs: harden inode lookup for 32-bit platforms

This patch introduces inode hash function, test and set callbacks,
and iget5_locked to find the right inode for 32-bit platforms.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/inode.c
drivers/staging/erofs/internal.h