From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx194.postini.com [74.125.245.194]) by kanga.kvack.org (Postfix) with SMTP id ED6986B0044 for ; Fri, 9 Mar 2012 16:11:59 -0500 (EST) Date: Fri, 9 Mar 2012 22:11:56 +0100 From: Jan Kara Subject: Re: [PATCH 5/9] writeback: introduce the pageout work Message-ID: <20120309211156.GA6262@quack.suse.cz> References: <20120301163837.GA13104@quack.suse.cz> <20120302044858.GA14802@localhost> <20120302095910.GB1744@quack.suse.cz> <20120302103951.GA13378@localhost> <20120302115700.7d970497.akpm@linux-foundation.org> <20120303135558.GA9869@localhost> <1331135301.32316.29.camel@sauron.fi.intel.com> <20120309073113.GA5337@localhost> <20120309095135.GC21038@quack.suse.cz> <1331309451.29445.42.camel@sauron.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1331309451.29445.42.camel@sauron.fi.intel.com> Sender: owner-linux-mm@kvack.org List-ID: To: Artem Bityutskiy Cc: Jan Kara , Fengguang Wu , Andrew Morton , Greg Thelen , Ying Han , "hannes@cmpxchg.org" , KAMEZAWA Hiroyuki , Rik van Riel , Mel Gorman , Minchan Kim , Linux Memory Management List , LKML , Adrian Hunter On Fri 09-03-12 18:10:51, Artem Bityutskiy wrote: > On Fri, 2012-03-09 at 10:51 +0100, Jan Kara wrote: > > > However I cannot find any ubifs functions to form the above loop, so > > > ubifs should be safe for now. > > Yeah, me neither but I also failed to find a place where > > ubifs_evict_inode() truncates inode space when deleting the inode... Artem? > > We do call 'truncate_inode_pages()': > > static void ubifs_evict_inode(struct inode *inode) > { > ... > > truncate_inode_pages(&inode->i_data, 0); > > ... > } Well, but that just removes pages from page cache. You should somewhere also free allocated blocks and free the inode... And I'm sure you do, otherwise you would pretty quickly notice that file deletion does not work :) Just I could not find which function does it. Honza -- Jan Kara SUSE Labs, CR -- 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