]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
xfs: don't leak quotacheck dquots when cow recovery
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 10 Aug 2017 21:20:29 +0000 (14:20 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 17 Aug 2017 19:40:33 +0000 (12:40 -0700)
commit77aff8c76425c8f49b50d0b9009915066739e7d2
treea50370e38abe86979873fbf79c68e791c9aff0cd
parent8204f8ddaafafcae074746fcf2a05a45e6827603
xfs: don't leak quotacheck dquots when cow recovery

If we fail a mount on account of cow recovery errors, it's possible that
a previous quotacheck left some dquots in memory.  The bailout clause of
xfs_mountfs forgets to purge these, and so we leak them.  Fix that.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_mount.c