Re: [PATCH] [12/16] Refactor truncate to allow direct truncating of page

From: Andi Kleen
Date: Thu Jun 04 2009 - 01:13:50 EST


On Thu, Jun 04, 2009 at 12:32:08PM +0800, Wu Fengguang wrote:
> > +void truncate_inode_page(struct address_space *mapping, struct page *page)
> > +{
> > + if (page_mapped(page)) {
> > + unmap_mapping_range(mapping,
> > + (loff_t)page->index<<PAGE_CACHE_SHIFT,
> > + PAGE_CACHE_SIZE, 0);
> > + }
> > + truncate_complete_page(mapping, page);
> > +}
> > +
>
> Small style cleanup:

Applied.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/