]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit548e95e64195bf5e4532fbbaf5ce3295bb714ba6
treea57ac641433ac4f96a8a3476ba02bfbecf2ffbf1
parent747eccc6c16c5ed774520fa9d86912744ccf5061
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