• Christoph Hellwig's avatar
    xfs: simplify buffer to transaction matching · 4a5224d7
    Christoph Hellwig authored
    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: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarAlex Elder <aelder@sgi.com>
    4a5224d7
xfs_trans_buf.c 25.6 KB