• Dave Chinner's avatar
    xfs: mark inode buffers in cache · f593bf14
    Dave Chinner authored
    Inode buffers always have write IO callbacks, so by marking them
    directly we can avoid needing to attach ->b_iodone functions to
    them. This avoids an indirect call, and makes future modifications
    much simpler.
    
    While this is largely a refactor of existing functionality, we
    broaden the scope of the flag to beyond where inodes are explicitly
    attached because future changes need to know what type of log items
    are attached to the buffer. Adding this buffer flag may invoke the
    inode iodone callback in cases where it wouldn't have been
    previously, but this is not a functional change because the callback
    is identical to the normal buffer write iodone callback when inodes
    are not attached.
    Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
    Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
    Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
    f593bf14
xfs_buf.c 53.7 KB