Christoph Hellwig fa9b227e90 xfs: new truncate sequence
Convert XFS to the new truncate sequence.  We still can have errors after
updating the file size in xfs_setattr, but these are real I/O errors and lead
to a transaction abort and filesystem shutdown, so they are not an issue.

Errors from ->write_begin and write_end can now be handled correctly because
we can actually get rid of the delalloc extents while previous the buffer
state was stipped in block_invalidatepage.

There is still no error handling for ->direct_IO, because doing so will need
some major restructuring given that we only have the iolock shared and do not
hold i_mutex at all.  Fortunately leaving the normally allocated blocks behind
there is not a major issue and this will get cleaned up by xfs_free_eofblock
later.

Note: the patch is against Al's vfs.git tree as that contains the nessecary
preparations.  I'd prefer to get it applied there so that we can get some
testing in linux-next.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2010-08-09 16:47:42 -04:00
..
2008-04-29 15:54:02 +10:00
2008-12-04 15:39:21 +11:00
2010-07-26 13:16:44 -05:00
2010-08-09 16:47:42 -04:00
2008-12-29 16:47:18 +11:00
2010-07-26 13:16:44 -05:00
2007-10-22 08:13:20 -07:00
2010-07-26 13:16:47 -05:00
2010-07-26 13:16:33 -05:00
2010-07-26 13:16:44 -05:00
2010-07-26 13:16:44 -05:00
2010-08-09 16:47:42 -04:00
2010-08-09 16:47:42 -04:00
2010-07-26 13:16:33 -05:00
2009-09-15 12:29:24 -05:00
2008-10-30 16:55:03 +11:00
2010-07-26 13:16:33 -05:00
2009-12-14 23:08:16 -06:00
2010-05-21 18:31:19 -04:00