]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove incorrect assert in xfs_vm_writepage
authorChristoph Hellwig <hch@infradead.org>
Wed, 10 Nov 2010 21:39:11 +0000 (21:39 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 10 Nov 2010 21:51:10 +0000 (15:51 -0600)
commit927b50e565f4aaf77d02b556abd18ae84df1eea1
treefe26d60458a4bfbd39e7e319e41c0ceca011914d
parentc8bc5c2079ca109eeab3cab0aa0c4c67966d2f5d
xfs: remove incorrect assert in xfs_vm_writepage

In commit d5b6a504ca7e5503780e0903738a36eea307143f, titled
"xfs: simplify xfs_vm_writepage" I added an assert that any !mapped and
uptodate buffers are not dirty.  That asserts turns out to trigger a lot
when running fsx on filesystems with small block sizes.  The reason for
that is that the assert is simply incorrect.  !mapped and uptodate
just mean this buffer covers a hole, and whenever we do a set_page_dirty
we mark all blocks in the page dirty, no matter if they have data or
not.  So remove the assert, and update the comment above the condition
to match reality.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_aops.c