Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4190f90 authored by Dave Chinner's avatar Dave Chinner Committed by Alex Elder
Browse files

xfs: move inode shrinker unregister even earlier



I missed Dave Chinner's second revision of this change, and pushed
his first version out to the repository instead.

	commit a476c59ebb279d738718edc0e3fb76aab3687114
	Author: Dave Chinner <dchinner@redhat.com>

This commit compensates for that by moving a block of code up a bit
further, with a result that matches the the effect of Dave's second
version.

Dave's first version was:
	Reviewed-by: default avatarEric Sandeen <sandeen@redhat.com>
Dave's second version was:
	Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>

Signed-off-by: default avatarAlex Elder <aelder@sgi.com>
Reviewed-by: default avatarEric Sandeen <sandeen@redhat.com>
parent fa17b25e
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -1145,6 +1145,11 @@ xfs_fs_put_super(
{
{
	struct xfs_mount	*mp = XFS_M(sb);
	struct xfs_mount	*mp = XFS_M(sb);


	/*
	 * Unregister the memory shrinker before we tear down the mount
	 * structure so we don't have memory reclaim racing with us here.
	 */
	xfs_inode_shrinker_unregister(mp);
	xfs_syncd_stop(mp);
	xfs_syncd_stop(mp);


	/*
	/*
@@ -1156,11 +1161,6 @@ xfs_fs_put_super(


	XFS_bflush(mp->m_ddev_targp);
	XFS_bflush(mp->m_ddev_targp);


	/*
	 * Unregister the memory shrinker before we tear down the mount
	 * structure so we don't have memory reclaim racing with us here.
	 */
	xfs_inode_shrinker_unregister(mp);
	xfs_unmountfs(mp);
	xfs_unmountfs(mp);
	xfs_freesb(mp);
	xfs_freesb(mp);
	xfs_icsb_destroy_counters(mp);
	xfs_icsb_destroy_counters(mp);