Re: Checking page_count(page) in invalidate_complete_page

Chuck Lever
2006-09-25T22:56:00Z

Andrew Morton wrote:
> I think invalidate_inode_pages2() is sufficiently different from (ie:
> stronger than) invalidate_inode_pages() to justify the addition of a new
> invalidate_complete_page2(), which skips the page refcount check.

Almost all of invalidate_complete_page() is the same in both cases. How
about using a boolean switch to determine whether the page_count is
honored or not?