]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
xfs: ordered buffer log items are never formatted
authorBrian Foster <bfoster@redhat.com>
Sun, 17 Sep 2017 21:06:20 +0000 (14:06 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 20 Sep 2017 12:31:59 +0000 (07:31 -0500)
commit409b30aa18086415c69112be084b067e828696e9
treeffba0e8139341f999b4acc48104fb5d3cabbb0a3
parent56266d7a3683e11c5deea5409f5c339ece331aa2
xfs: ordered buffer log items are never formatted

BugLink: http://bugs.launchpad.net/bugs/1718412
commit e9385cc6fb7edf23702de33a2dc82965d92d9392 upstream.

Ordered buffers pass through the logging infrastructure without ever
being written to the log. The way this works is that the ordered
buffer status is transferred to the log vector at commit time via
the ->iop_size() callback. In xlog_cil_insert_format_items(),
ordered log vectors bypass ->iop_format() processing altogether.

Therefore it is unnecessary for xfs_buf_item_format() to handle
ordered buffers. Remove the unnecessary logic and assert that an
ordered buffer never reaches this point.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_trace.h