Message ID | 20220201180822.337788155@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CF33C4332F for <stable@archiver.kernel.org>; Tue, 1 Feb 2022 18:18:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241886AbiBASSP (ORCPT <rfc822;stable@archiver.kernel.org>); Tue, 1 Feb 2022 13:18:15 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:51372 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241873AbiBASSD (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 1 Feb 2022 13:18:03 -0500 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 sin.source.kernel.org (Postfix) with ESMTPS id 5E3CDCE1A66; Tue, 1 Feb 2022 18:18:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FD4CC340EC; Tue, 1 Feb 2022 18:17:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643739480; bh=j+IhRbq4Cs2X1+PpGGO88TqMrMllX3nejWDyhD2ZKVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r7xZlgLU5yPVuxZZI1Cg0hCMTcHMBMmjyuz6n4wTesCf5ovvPj7zrFZft/e/9/Riv 67pz7CmSAY2UF361R96WE1ZGnLJpOPR4xmoskCSRmoACnmjE4IgGXDMrxWBWPrrB68 o1YEWyIH/s0Zrw9DOxgI2zQUGZMrLC9aAdQ6wmTA= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, butt3rflyh4ck <butterflyhuangxx@gmail.com>, Christoph Hellwig <hch@lst.de>, Jan Kara <jack@suse.cz> Subject: [PATCH 4.4 05/25] udf: Restore i_lenAlloc when inode expansion fails Date: Tue, 1 Feb 2022 19:16:29 +0100 Message-Id: <20220201180822.337788155@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220201180822.148370751@linuxfoundation.org> References: <20220201180822.148370751@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -320,6 +320,7 @@ int udf_expand_file_adinicb(struct inode unlock_page(page); iinfo->i_alloc_type = ICBTAG_FLAG_AD_IN_ICB; inode->i_data.a_ops = &udf_adinicb_aops; + iinfo->i_lenAlloc = inode->i_size; up_write(&iinfo->i_data_sem); } page_cache_release(page);