Brian Foster 20e8a06378 xfs: fix up quotacheck buffer list error handling
The quotacheck error handling of the delwri buffer list assumes the
resident buffers are locked and doesn't clear the _XBF_DELWRI_Q flag
on the buffers that are dequeued. This can lead to assert failures
on buffer release and possibly other locking problems.

Move this code to a delwri queue cancel helper function to
encapsulate the logic required to properly release buffers from a
delwri queue. Update the helper to clear the delwri queue flag and
call it from quotacheck.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
2017-04-25 09:40:42 -07:00
..
2017-03-07 20:10:50 -08:00
2017-03-07 20:10:50 -08:00
2017-04-03 15:18:17 -07:00
2017-04-03 15:18:16 -07:00
2016-11-30 14:37:15 +11:00
2016-10-04 11:05:44 -07:00
2017-04-25 09:40:41 -07:00
2017-02-27 18:43:46 -08:00
2017-04-03 15:18:17 -07:00
2017-04-25 09:40:41 -07:00
2017-04-03 15:18:17 -07:00