On Thu, 29 Nov 2007, David Chinner wrote: > On Wed, Nov 28, 2007 at 05:10:53PM -0800, Christoph Lameter wrote: > > +/* > > + * Index of the page starting on or after the given position. > > + */ > > +static inline pgoff_t page_cache_next(struct address_space *a, > > + loff_t pos) > > +{ > > + return page_cache_index(a, pos + page_cache_size(a) - 1); > > return page_cache_index(a, pos + page_cache_mask(a)); Na that is confusing. We really want to go to one byte before the end of the page. - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html