hugetlbfs: return error code when initializing module
authorHillf Danton <[email protected]>
Wed, 21 Mar 2012 23:34:15 +0000 (16:34 -0700)
committerLinus Torvalds <[email protected]>
Thu, 22 Mar 2012 00:55:00 +0000 (17:55 -0700)
commitd1d5e05ffdc110021ae7937802e88ae0d223dcdc
treed0960138966aa0436ffad1907f3ad14dcb625ddf
parentb69add218d32450d6604bc9080f6e33e19b06f5e
hugetlbfs: return error code when initializing module

Return an errno upon failure to create inode kmem cache, and unregister
the FS upon failure to mount.

[[email protected]: remove unneeded test of `error']
Signed-off-by: Hillf Danton <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/hugetlbfs/inode.c