From patchwork Wed Oct 24 06:44:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ycnian@gmail.com X-Patchwork-Id: 1635961 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 0391B3FC36 for ; Wed, 24 Oct 2012 06:53:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757864Ab2JXGxU (ORCPT ); Wed, 24 Oct 2012 02:53:20 -0400 Received: from mail-da0-f46.google.com ([209.85.210.46]:64199 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757833Ab2JXGxT (ORCPT ); Wed, 24 Oct 2012 02:53:19 -0400 Received: by mail-da0-f46.google.com with SMTP id n41so115277dak.19 for ; Tue, 23 Oct 2012 23:53:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=M5DEXwzCu0y9GcuvXxZzovGRaibIipeyzafb1mQj1Jk=; b=f7WG/lSD91/LlQmJhJ0CopFH+X3/Lalr27kMiJIX383TNGJpiNhkort4QyAmIc2RJs s3Bh5burkiN7qw6YmGHyN2tjjYtCcKWrQp0aSLxVU4v0/MeHwRZPaV2S9r3gIy/exJDM WczOIhSnTvts8pQQdLYGjnB0p1TdaEFgiLfDSb/cMFta3OWVlEjgRE753vgT+v199kUP wl2IbN3/Qq/SKcHLiiANK3SY1LkzJQj7DJDlcnicrmjHJPXvqMtoOBfiGgAls+tr+EAL Y0S4lLLDg4xgA2Gw1rOaJobHiw/0CL+l6gMydRundobCvS9rGfvpqCGwQ+7I4f1x0FiR lPwg== Received: by 10.66.76.98 with SMTP id j2mr41552279paw.65.1351061598970; Tue, 23 Oct 2012 23:53:18 -0700 (PDT) Received: from localhost ([159.226.5.131]) by mx.google.com with ESMTPS id k4sm9035313pax.7.2012.10.23.23.53.16 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Oct 2012 23:53:18 -0700 (PDT) From: ycnian@gmail.com To: bfields@fieldses.org Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Yanchuan Nian Subject: [PATCH] nfs: fix wrong object type in lockowner_slab Date: Wed, 24 Oct 2012 14:44:19 +0800 Message-Id: <1351061059-29318-1-git-send-email-ycnian@gmail.com> X-Mailer: git-send-email 1.7.4.4 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Yanchuan Nian The object type in the cache of lockowner_slab is wrong, and it is better to fix it. Signed-off-by: Yanchuan Nian --- fs/nfsd/nfs4state.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index cc894ed..1609eb2 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -2325,7 +2325,7 @@ nfsd4_init_slabs(void) if (openowner_slab == NULL) goto out_nomem; lockowner_slab = kmem_cache_create("nfsd4_lockowners", - sizeof(struct nfs4_openowner), 0, 0, NULL); + sizeof(struct nfs4_lockowner), 0, 0, NULL); if (lockowner_slab == NULL) goto out_nomem; file_slab = kmem_cache_create("nfsd4_files",