]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: add helper to conditionally remove items from the AIL
authorBrian Foster <bfoster@redhat.com>
Wed, 19 Aug 2015 00:01:08 +0000 (10:01 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 19 Aug 2015 00:01:08 +0000 (10:01 +1000)
commit146e54b71ea4b998d65c25964807ff6792bbf436
tree2fc5a2db363067cbdec6718318769d188c11a161
parentf307080a626569f89bc8fbad9f936b307aded877
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>
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_dquot.c
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_trans_priv.h