xfs: add helper to conditionally remove items from the AIL

Several areas of code duplicate a pattern where we take the AIL lock,
check whether an item is in the AIL and remove it if so. Create a new
helper for this pattern and use it where appropriate.

Signed-off-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
Brian Foster 2015-08-19 10:01:08 +10:00 • committed by Dave Chinner
commit 146e54b71e
5 changed files with 21 additions and 33 deletions