mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-11-27 14:11:04 +00:00
[XFS] use KM_MAYFAIL in xfs_mountfs
Use KM_MAYFAIL for the m_perag allocation, we can deal with the error easily and blocking forever during mount is not a good idea either. SGI-PV: 981498 SGI-Modid: xfs-linux-melb:xfs-kern:31837a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
This commit is contained in:
parent
ff4f038c6b
commit
d62c251fe4
@ -1052,8 +1052,10 @@ xfs_mountfs(
|
|||||||
* Allocate and initialize the per-ag data.
|
* Allocate and initialize the per-ag data.
|
||||||
*/
|
*/
|
||||||
init_rwsem(&mp->m_peraglock);
|
init_rwsem(&mp->m_peraglock);
|
||||||
mp->m_perag =
|
mp->m_perag = kmem_zalloc(sbp->sb_agcount * sizeof(xfs_perag_t),
|
||||||
kmem_zalloc(sbp->sb_agcount * sizeof(xfs_perag_t), KM_SLEEP);
|
KM_MAYFAIL);
|
||||||
|
if (!mp->m_perag)
|
||||||
|
goto error1;
|
||||||
|
|
||||||
mp->m_maxagi = xfs_initialize_perag(mp, sbp->sb_agcount);
|
mp->m_maxagi = xfs_initialize_perag(mp, sbp->sb_agcount);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user