Received: by 10.213.65.68 with SMTP id h4csp292096imn; Wed, 21 Mar 2018 19:10:15 -0700 (PDT) X-Google-Smtp-Source: AG47ELvu4QGdXsDr5PjOWDvd+d43DB1jXSTKVzlXFJh9lzfvjVjXpLKew6r3OSeuFzicM4qft6pK X-Received: by 2002:a17:902:bcc6:: with SMTP id o6-v6mr22526304pls.16.1521684615125; Wed, 21 Mar 2018 19:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521684615; cv=none; d=google.com; s=arc-20160816; b=pawUEXn4PN/DRGR5zuH+XE5BdXcG9OIJgVobmb5P3ySSPSGaOvA40bVaPiPhow+K3H A/2YOdcS2lqW8atfDyoSLn5RZ+Fa2OTqiPpKmAuW16pxAl5zjniD4Pf3PnJgYZZZmAqQ hpjFQcb5D2vp8Uc7x923m62ug4dbcanSyrWN6s09HuGMb9rDA/1AOR5Nj2eA2no+O4/m e129/71YR7sX52TgN9QeQ2aEEEwjTFOgUNJT+xUDw7BNC84Pgm+H72PJzx57C8Mh87qD bymf54zMdwxMsKrkIIYXdZBmGr/Ba8yfl2BTFvaFcEc7ABmYl4APa1ajDkrinDam38nk t+5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=lQ0KLZH8LAtPhOL7mkTc1egWHHDqksG9XRp7S2qZ8p4=; b=qQb4f7g96pypuI1X4wRc3AvwhlKYA/z14oOC3bNhPeB3ss613RTLgSIJTLzDdGlSXK VI3r4ozPZ6nawLsgEVdtK/TU1oNbcBH0Qkyi6MOd1TS7y+zl4HfmAGFNTrhVV4gAXSCX M/SRWs+dqgBRdUJ7j86+0gxPS4f0vBImu2+W+wQSpa4Uq80ZBgKUi00mUxcKWVSHdTVo KW1dj/vUy+5VbqoMSKfxNEE94rk1KA57MajOcsPy3fdbHkmWLvIUxnHe1G4v9oC0PbPS M+UDCd+SEF+juCmee8NoLAjI2RotcjAVDLaxmg66ICnKwxmWKGNpN9//NhCC5wdfKK/k EsDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25si3749241pge.26.2018.03.21.19.10.00; Wed, 21 Mar 2018 19:10:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751717AbeCVCJH (ORCPT + 99 others); Wed, 21 Mar 2018 22:09:07 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6673 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751455AbeCVCJG (ORCPT ); Wed, 21 Mar 2018 22:09:06 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9DC67DD664777; Thu, 22 Mar 2018 10:08:53 +0800 (CST) Received: from huawei.com (10.113.189.234) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.361.1; Thu, 22 Mar 2018 10:08:46 +0800 From: Yunlong Song To: , , , , CC: , , , , , Subject: [PATCH v2] f2fs: no need to initialize zero value for GFP_F2FS_ZERO Date: Thu, 22 Mar 2018 10:08:40 +0800 Message-ID: <1521684520-142131-1-git-send-email-yunlong.song@huawei.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1521635131-137071-1-git-send-email-yunlong.song@huawei.com> References: <1521635131-137071-1-git-send-email-yunlong.song@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.113.189.234] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since f2fs_inode_info is allocated with flag GFP_F2FS_ZERO, so we do not need to initialize zero value for its member any more. Signed-off-by: Yunlong Song --- fs/f2fs/super.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 0c1fe9b..42d564c 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -827,7 +827,6 @@ static struct inode *f2fs_alloc_inode(struct super_block *sb) /* Initialize f2fs-specific inode info */ atomic_set(&fi->dirty_pages, 0); fi->i_current_depth = 1; - fi->i_advise = 0; init_rwsem(&fi->i_sem); INIT_LIST_HEAD(&fi->dirty_list); INIT_LIST_HEAD(&fi->gdirty_list); @@ -839,10 +838,6 @@ static struct inode *f2fs_alloc_inode(struct super_block *sb) init_rwsem(&fi->i_mmap_sem); init_rwsem(&fi->i_xattr_sem); -#ifdef CONFIG_QUOTA - memset(&fi->i_dquot, 0, sizeof(fi->i_dquot)); - fi->i_reserved_quota = 0; -#endif /* Will be used by directory only */ fi->i_dir_level = F2FS_SB(sb)->dir_level; -- 1.8.5.2