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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nick Piggin
Date: Monday, July 7, 2008 - 7:28 am

On Monday 07 July 2008 22:52, Miklos Szeredi wrote:

If dirty can't happen, the caller should just use the truncate.
The creation of this "invalidate 2" thing was just papering over
problems in the callers.

But anyway your point is taken -- caller doesn't really handle failure.



Note that files can be truncated in the middle too, so you can't
just fix one case that happens to hit you, you'd have to fix things
consistently.

But...



Given the alternatives, perhaps this is for the best, at least for
now.
--
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 ..., Nick Piggin, (Mon Jul 7, 7:28 am)