Re: [PATCH v4] ocfs2: Let ocfs2_setattr use new truncate sequence.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joel Becker
Date: Friday, June 11, 2010 - 12:50 am

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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH v4] ocfs2: Let ocfs2_setattr use new truncate s ..., Christoph Hellwig, (Thu Jun 10, 11:56 pm)
Re: [PATCH v4] ocfs2: Let ocfs2_setattr use new truncate s ..., Christoph Hellwig, (Fri Jun 11, 12:19 am)
Re: [PATCH v4] ocfs2: Let ocfs2_setattr use new truncate s ..., Joel Becker, (Fri Jun 11, 12:50 am)