Re: [PATCH 1/2] ocfs2: Zero the tail cluster when extending past i_size v2

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tao Ma
Date: Tuesday, July 6, 2010 - 12:54 am

Hi Joel,

On 07/06/2010 03:17 PM, Joel Becker wrote:
ok, so as you wish.
we can. AFAICS, ocfs2_change_file_space will allocate unwritten extents 
and does't change i_size.
You can add it as you wish.
I just thought that you add one more extra cluster if pos_blkno isn't 
aligned so as to zero blocks in [pos_cpos_start_block, pos_blkno).
But As I said in the comments, you will soon write pos_blkno(it also 
needs to be CoW since it is within this refcounted extent), so if we can 
CoW it out now, maybe we have a chance to not call ocfs2_refcount_cow later.

Regards,
Tao
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/2] ocfs2: Zero the tail cluster when extendin ..., Tao Ma, (Tue Jul 6, 12:54 am)
[PATCH 0/3] ocfs2: Tail zeroing fixes., Joel Becker, (Wed Jul 7, 4:16 am)