Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756766Ab2HFRN6 (ORCPT ); Mon, 6 Aug 2012 13:13:58 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:43093 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756621Ab2HFRN5 (ORCPT ); Mon, 6 Aug 2012 13:13:57 -0400 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 6 Aug 2012 20:13:55 +0300 X-Google-Sender-Auth: jGCccUt_v_w6ePbvd7uEfsL9Ueo Message-ID: Subject: Re: [RFC/PATCH] zcache/ramster rewrite and promotion From: Pekka Enberg To: Dan Magenheimer Cc: Seth Jennings , Konrad Wilk , Minchan Kim , Nitin Gupta , Andrew Morton , Robert Jennings , Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1471 Lines: 31 On Mon, Aug 6, 2012 at 7:10 PM, Dan Magenheimer wrote: > Hmmm.. there's also zbud.c and tmem.c which are critical components > of both zcache and ramster. And there are header files as well which > will need to either be in mm/ or somewhere in include/linux/ > > Is there a reason or rule that mm/ can't have subdirectories? > > Since zcache has at least three .c files plus ramster.c, and > since mm/frontswap.c and mm/cleancache.c are the foundation on > which all of these are built, I was thinking grouping all six > (plus headers) in the same mm/tmem/ subdirectory was a good > way to keep mm/ from continuing to get more cluttered... not counting > new zcache and ramster files, there are now 74 .c files in mm/! > (Personally, I think a directory has too many files in it if > "ls" doesn't fit in a 25x80 window.) > > Thoughts? There's no reason we can't have subdirectories. That said, I really don't see the point of having a separate directory called 'tmem'. It might make sense to have mm/zcache and/or mm/ramster but I suspect you can just fold the core code in mm/zcache.c and mm/ramster.c by slimming down the weird Solaris-like 'tmem' abstractions. Pekka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/