Re: [patch 01/19] Define functions for page cache handling

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Christoph Lameter <clameter@...>, <linux-fsdevel@...>, <linux-mm@...>, <hch@...>, <mel@...>, <wli@...>, <dgc@...>, <jens.axboe@...>, <pbadari@...>, <maximlevitsky@...>, <fengguang.wu@...>, <wangswin@...>, <totty.lu@...>, <hugh@...>, <joern@...>
Date: Tuesday, December 4, 2007 - 1:59 am

On Mon, Dec 03, 2007 at 02:10:20PM -0800, Andrew Morton wrote:

Hmmmm. Many of the places where these functions are called will have
the page locked and the mapping protected against truncate.

A quick pass through the patches indicates the changes to rmap.c,
migrate.c, alloc_page_buffers(), and drivers/block/rd.c seem to be
the only ones that are suspect. Almost everywhere else we either
use the inode->i_mapping or the page comes in locked (i.e. would
crash on struct inode * inode = page->mapping->host; at function entry
otherwise).

It seems the exposure here is not that great. I'm ambivalent, though; I
don'tmind what interface there is just so long as it cleans up this mess ;)


Definitely an improvement.

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 01/19] Define functions for page cache handling, Christoph Lameter, (Fri Nov 30, 1:34 pm)
Re: [patch 01/19] Define functions for page cache handling, David Chinner, (Tue Dec 4, 1:59 am)