xfs: remove XFS_MOUNT_NO_PERCPU_SB
Fail the mount if we can't allocate memory for the per-CPU counters. This is consistent with how we handle everything else in the mount path and makes the superblock counter modification a lot simpler. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
This commit is contained in:

committed by
Alex Elder

parent
50f59e8eed
commit
61ba35dea0
@@ -1518,8 +1518,9 @@ xfs_fs_fill_super(
|
||||
if (error)
|
||||
goto out_free_fsname;
|
||||
|
||||
if (xfs_icsb_init_counters(mp))
|
||||
mp->m_flags |= XFS_MOUNT_NO_PERCPU_SB;
|
||||
error = xfs_icsb_init_counters(mp);
|
||||
if (error)
|
||||
goto out_close_devices;
|
||||
|
||||
error = xfs_readsb(mp, flags);
|
||||
if (error)
|
||||
@@ -1580,6 +1581,7 @@ xfs_fs_fill_super(
|
||||
xfs_freesb(mp);
|
||||
out_destroy_counters:
|
||||
xfs_icsb_destroy_counters(mp);
|
||||
out_close_devices:
|
||||
xfs_close_devices(mp);
|
||||
out_free_fsname:
|
||||
xfs_free_fsname(mp);
|
||||
|
Reference in New Issue
Block a user