xfs: fix segment in xfs_buf_item_format_segment
authorMark Tinguely <tinguely@sgi.com>
Tue, 4 Dec 2012 23:18:04 +0000 (17:18 -0600)
committerBen Myers <bpm@sgi.com>
Wed, 16 Jan 2013 22:07:56 +0000 (16:07 -0600)
commit2d0e9df579029b62adc72b50977182757cc04cd5
treea57ac641433ac4f96a8a3476ba02bfbecf2ffbf1
parent0f22f9d0cd8a630b40a9ccc07a8844345b185aae
xfs: fix segment in xfs_buf_item_format_segment

Not every segment in a multi-segment buffer is dirty in a
transaction and they will not be outputted. The assert in
xfs_buf_item_format_segment() that checks for the at least
one chunk of data in the segment to be used is not necessary
true for multi-segmented buffers.

Signed-off-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_buf_item.c