lkml.org 
[lkml]   [2009]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] [12/16] Refactor truncate to allow direct truncating of page
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@linux.intel.com -- Speaking for myself only.


\
 
 \ /
  Last update: 2009-06-04 07:17    [W:0.074 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site