On Fri, Jun 11, 2010 at 09:19:45AM +0200, Christoph Hellwig wrote:
Christoph,
You're missing the part where actual truncate (reduce i_size)
sets i_size in ocfs2_truncate_file(). So this later code doesn't get
triggered for the truncate case. It exists for the extend case, where
we extend the allocation in multiple clean transactions, then finally
set i_size in a final transaction.
Joel
--
"When choosing between two evils, I always like to try the one
I've never tried before."
- Mae West
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127
--