From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [patch 2/5] mm + fs: prepare for non-page entries in page cache Date: Tue, 1 May 2012 12:02:46 -0700 Message-ID: <20120501120246.83d2ce28.akpm@linux-foundation.org> References: <1335861713-4573-1-git-send-email-hannes@cmpxchg.org> <1335861713-4573-3-git-send-email-hannes@cmpxchg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-mm@kvack.org, Rik van Riel , Andrea Arcangeli , Peter Zijlstra , Mel Gorman , Minchan Kim , Hugh Dickins , KOSAKI Motohiro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Johannes Weiner Return-path: In-Reply-To: <1335861713-4573-3-git-send-email-hannes@cmpxchg.org> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org On Tue, 1 May 2012 10:41:50 +0200 Johannes Weiner wrote: > --- a/fs/inode.c > +++ b/fs/inode.c > @@ -544,8 +544,7 @@ static void evict(struct inode *inode) > if (op->evict_inode) { > op->evict_inode(inode); > } else { > - if (inode->i_data.nrpages) > - truncate_inode_pages(&inode->i_data, 0); > + truncate_inode_pages(&inode->i_data, 0); Why did we lose this optimisation? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org