]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mbcache: don't BUG() if entry cache cannot be allocated
authorEric Biggers <ebiggers@google.com>
Sat, 3 Dec 2016 20:28:53 +0000 (15:28 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 3 Dec 2016 20:28:53 +0000 (15:28 -0500)
commit21d0f4fa8e7b026cdae988f99f4c3aab154d5b7c
tree87b17f432155f7664d478d5a23588fdda388eadd
parent918b7306edacbcc8a9ca318a5a34d73954e1705d
mbcache: don't BUG() if entry cache cannot be allocated

mbcache can be a module that is loaded long after startup, when someone
asks to mount an ext2 or ext4 filesystem.  Therefore it should not BUG()
if kmem_cache_create() fails, but rather just fail the module load.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/mbcache.c