]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd50b5447375e75134adb015164d6945b088e286d
treee8bf743db2f294389e8bc1f36cd54179cbd63f1c
parent9192a6cd2090b3d4d7887ed0067251b6ab5db246
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