Thread (35 messages) 35 messages, 7 authors, 2012-05-18

Re: [patch 2/5] mm + fs: prepare for non-page entries in page cache

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2012-05-01 19:02:46
Also in: linux-fsdevel, lkml

On Tue,  1 May 2012 10:41:50 +0200
Johannes Weiner [off-list ref] wrote:
quoted hunk ↗ jump to hunk
--- 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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help