diff options
author | Dave Chinner <dchinner@redhat.com> | 2010-03-23 00:10:00 +0100 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-05-19 16:58:07 +0200 |
commit | 43f5efc5b59db1b66e39fe9fdfc4ba6a27152afa (patch) | |
tree | 100e2b49e622e6933d8f88e052076e23bd943ae1 /fs/xfs/xfs_buf_item.c | |
parent | xfs: add blockdev name to kthreads (diff) | |
download | linux-43f5efc5b59db1b66e39fe9fdfc4ba6a27152afa.tar.xz linux-43f5efc5b59db1b66e39fe9fdfc4ba6a27152afa.zip |
xfs: factor log item initialisation
Each log item type does manual initialisation of the log item.
Delayed logging introduces new fields that need initialisation, so
factor all the open coded initialisation into a common function
first.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_buf_item.c')
-rw-r--r-- | fs/xfs/xfs_buf_item.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c index f3c49e69eab9..aace237b4f46 100644 --- a/fs/xfs/xfs_buf_item.c +++ b/fs/xfs/xfs_buf_item.c @@ -733,10 +733,7 @@ xfs_buf_item_init( bip = (xfs_buf_log_item_t*)kmem_zone_zalloc(xfs_buf_item_zone, KM_SLEEP); - bip->bli_item.li_type = XFS_LI_BUF; - bip->bli_item.li_ops = &xfs_buf_item_ops; - bip->bli_item.li_mountp = mp; - bip->bli_item.li_ailp = mp->m_ail; + xfs_log_item_init(mp, &bip->bli_item, XFS_LI_BUF, &xfs_buf_item_ops); bip->bli_buf = bp; xfs_buf_hold(bp); bip->bli_format.blf_type = XFS_LI_BUF; |