Re: [patch 1/2] mm: dont clear PG_uptodate in invalidate_complete_page2()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Miklos Szeredi
Date: Wednesday, June 25, 2008 - 7:41 am

> > > Like __block_prepare_write()?

It would be a grave error to call it without the page lock.


That's just a question of how we interpret PG_uptodate.  If it means:
the page contains data that is valid, or was valid at some point in
time, then an invalidated or truncated page can be uptodate.


You rely on page being !PageUptodate() after being invalidated?  Why
can't you check page->mapping instead (as everything else does)?


Yes.


No, instead of returning a short count, it is now returning old
content.

Miklos
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch 1/2] mm: dont clear PG_uptodate in invalidate_c ..., Miklos Szeredi, (Wed Jun 25, 7:41 am)