From patchwork Sun Nov 20 00:02:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Namjae Jeon X-Patchwork-Id: 126635 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 2DE82B722E for ; Sun, 20 Nov 2011 11:02:53 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754204Ab1KTACv (ORCPT ); Sat, 19 Nov 2011 19:02:51 -0500 Received: from mail-gx0-f174.google.com ([209.85.161.174]:61623 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754195Ab1KTACu (ORCPT ); Sat, 19 Nov 2011 19:02:50 -0500 Received: by ggnr5 with SMTP id r5so1279423ggn.19 for ; Sat, 19 Nov 2011 16:02:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=Ne5bx+Q/VU7YYemQD3J0oP5LykEGxCXMXmHMdUg5taQ=; b=qtIKsRjDAaLi0rx5HWpUyMG7SoaPLy6tWoUsiFgYycbFKMrjSrARF0fYiQLE1ifJcz +QOJbzza/i2ZOEWACkPpcE82sCL5vKbJN/+Y3P2O9coxXfy18E1G8CN5KkoyoDtTwaQ7 00xLAiq0Sga/NsPmRfvYigwBRlZJ2W1s1N23U= Received: by 10.50.17.197 with SMTP id q5mr8871783igd.2.1321747369858; Sat, 19 Nov 2011 16:02:49 -0800 (PST) Received: from localhost.localdomain ([59.16.241.187]) by mx.google.com with ESMTPS id eh34sm23603199ibb.5.2011.11.19.16.02.47 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 Nov 2011 16:02:49 -0800 (PST) From: Namjae Jeon To: tytso@mit.edu Cc: linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, Namjae Jeon , Amit Sahrawat Subject: [PATCH v2] ext4: group info caches set to SLAB_MEM_SPREAD flags. Date: Sun, 20 Nov 2011 09:02:39 +0900 Message-Id: <1321747359-1919-1-git-send-email-linkinjeon@gmail.com> X-Mailer: git-send-email 1.7.4.4 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org I try to set to SLAB_MEM_SPREAD flags in groups info caches accoding to http://lwn.net/Articles/173654/. And other filesystems have already set to this flags when using slab caches in fs. I believe that it is useful by original Paul jackson's patch and other fs is currently using this flags. Ted's opinion is that theoretically it would be sound to have that flag set with groups info slab cache. Signed-off-by: Namjae Jeon Signed-off-by: Amit Sahrawat --- fs/ext4/mballoc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index e2d8be8..7aacbbe 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -2407,7 +2407,8 @@ static int ext4_groupinfo_create_slab(size_t size) bb_counters[blocksize_bits + 2]); cachep = kmem_cache_create(ext4_groupinfo_slab_names[cache_index], - slab_size, 0, SLAB_RECLAIM_ACCOUNT, + slab_size, 0, SLAB_RECLAIM_ACCOUNT | + SLAB_MEM_SPREAD, NULL); ext4_groupinfo_caches[cache_index] = cachep;