xfs: simplify buffer to transaction matching
authorChristoph Hellwig <hch@infradead.org>
Sun, 18 Apr 2010 00:10:45 +0000 (00:10 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 19 May 2010 14:58:16 +0000 (09:58 -0500)
commit4a5224d7b167e5470ad34e5b1b6965a16f87854f
treee8bf743db2f294389e8bc1f36cd54179cbd63f1c
parent2d1ff3c75a4642062d314634290be6d8da4ffb03
xfs: simplify buffer to transaction matching

We currenly have a routine xfs_trans_buf_item_match_all which checks
if any log item in a transaction contains a given buffer, and a
second one that only does this check for the first, embedded chunk
of log items.  We only use the second routine if we know we only
have that log item chunk, so get rid of the limited routine and
always use the more complete one.

Also rename the old xfs_trans_buf_item_match_all to
xfs_trans_buf_item_match and update various surrounding comments,
and move the remaining xfs_trans_buf_item_match on top of the file
to avoid a forward prototype.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_trans_buf.c