Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1995532iob; Thu, 5 May 2022 12:48:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7rwmzfB/alY7Xoqu/OmT+40os/D3/DyLrfkqL8SY8D6OAMCQ5FGe2rbfDs8QwYcq28Eh+ X-Received: by 2002:a17:903:18c:b0:15e:be98:90ef with SMTP id z12-20020a170903018c00b0015ebe9890efmr13133001plg.129.1651780080619; Thu, 05 May 2022 12:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651780080; cv=none; d=google.com; s=arc-20160816; b=hELDamscRrtrg8yfmFrM0WeBkVmOliv9CuyO7PRSZHmE4uA8CFlbBuqMou60d/B9gq Ywxk2sJTxjS/i/QameZVQUSs/DwNMHhPP6ZEprVjBC1my2ch/Erin/j4Lt0owTZQPP9S q8RF6H1pGs2DJPx429ZCvASa7Lv/1P86RV55v2uBW2vt4Rx1eEUu+f+JtU45W8W73kfN OaoL4LnhGVaG9dccBjYuojW3h+Bxo0L9CxOM9zXK3P7R9TiPCHy+wcnBN36L96GtXr76 M2aC516DxVIp8O5WOulY7tsnPPggNX7IZGbTQkFW2FaglNflO0sGqp40dK8hhPBvjUYy NuRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=y99Cj/rXKBy/wAU8pUI2P+KbEERWLm31PsNLEuT0z0Y=; b=U1YQ9gcgQ7p4cMJUGDJUhQNxmqiwBxUdyc8QaHJyoT0BkQLS/GgXRLBEV2GvttW3CE +FpJJ3MG4mQoKaS/m/IEYUn0hrj23xe6M4Vf4Hda0rc3JxE8GohwBoh2TCQVvguDwx0O kRlrYCOT3dMaT0hW+tDNn07u4vusRlNoREygPFEtJCpc4ZRaqNYINx3IdhdiEEhe3pFz iJctG5I5Ijrm900tMUmuDzvsoNvUYIQQ3tFGv00akwCimCtqQqDBw40B7QRDzrV46V1C GrK0hD6Gg5uiUZNYNLAfVBP498n4vtEO8vJFS4pR2Ya52Z/HxMn4pzrmrlEebWY7i5Oh A7pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RdcALzLW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h64-20020a638343000000b003ab0dae46aasi2312590pge.520.2022.05.05.12.47.43; Thu, 05 May 2022 12:48:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RdcALzLW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376281AbiEDRon (ORCPT + 99 others); Wed, 4 May 2022 13:44:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355839AbiEDRIw (ORCPT ); Wed, 4 May 2022 13:08:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49793517CC; Wed, 4 May 2022 09:54:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5CAAD616B8; Wed, 4 May 2022 16:54:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACD40C385A4; Wed, 4 May 2022 16:54:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683276; bh=io5qK08uf7Ho5pIz2sIZ6RVCb9Wt3d3tyHRZDjUXifg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RdcALzLWeslAp+WWAav1mfycDQ8m5dnsur+/Z15ddv3cAYqiNLZ8WRzpeOa6bKN6R tBAdSvIulzO9DlsZu1KPvytNCk5eXesVTnEjHIpNtwF4fUwlr5lvSOurdYC8r0sVDE XF5XVNcmDbfruvGcQce8mYZJ6pA+ymXVJU1z1n34= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Damien Le Moal , Johannes Thumshirn , Chaitanya Kulkarni , Hans Holmberg Subject: [PATCH 5.15 142/177] zonefs: Clear inode information flags on inode creation Date: Wed, 4 May 2022 18:45:35 +0200 Message-Id: <20220504153105.971831088@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153053.873100034@linuxfoundation.org> References: <20220504153053.873100034@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Damien Le Moal commit 694852ead287a3433126e7ebda397b242dc99624 upstream. Ensure that the i_flags field of struct zonefs_inode_info is cleared to 0 when initializing a zone file inode, avoiding seeing the flag ZONEFS_ZONE_OPEN being incorrectly set. Fixes: b5c00e975779 ("zonefs: open/close zone on file open/close") Cc: Signed-off-by: Damien Le Moal Reviewed-by: Johannes Thumshirn Reviewed-by: Chaitanya Kulkarni Reviewed-by: Hans Holmberg Signed-off-by: Greg Kroah-Hartman --- fs/zonefs/super.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -1155,6 +1155,7 @@ static struct inode *zonefs_alloc_inode( inode_init_once(&zi->i_vnode); mutex_init(&zi->i_truncate_mutex); zi->i_wr_refcnt = 0; + zi->i_flags = 0; return &zi->i_vnode; }