linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question about punch hole
@ 2011-08-26  2:53 Yongqiang Yang
  2011-08-26 22:35 ` Allison Henderson
  0 siblings, 1 reply; 5+ messages in thread
From: Yongqiang Yang @ 2011-08-26  2:53 UTC (permalink / raw)
  To: Allison Henderson; +Cc: Ext4 Developers List

Hi Allison,

Currently, punch hole flushes all pages to disk and releases pages in
page cache, and then calls ext4_ext_map_blocks.

Assume that if a new page in the punching's range is mapped after
releasing pages and before down_write i_data_sem,
then ext4_ext_map_blocks will release map info of the page in extent
tree.  However, up layers does not know this, and they think the page
is mapped.

I can not find how punch hole handle the situation above.  Could you
shed a light on it?


-- 
Best Wishes
Yongqiang Yang

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-28  1:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-26  2:53 question about punch hole Yongqiang Yang
2011-08-26 22:35 ` Allison Henderson
2011-08-27  9:04   ` Yongqiang Yang
2011-08-27  9:33     ` Yongqiang Yang
2011-08-28  1:09       ` Allison Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).