Message ID | 895d3405f4831be6936f3df280792bff8cc2d401.1681365596.git.ritesh.list@gmail.com |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <SRS0=Gors=AE=vger.kernel.org=linux-ext4-owner@ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=150.107.74.76; helo=gandalf.ozlabs.org; envelope-from=srs0=gors=ae=vger.kernel.org=linux-ext4-owner@ozlabs.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=KMTTXSOX; dkim-atps=neutral Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PxtN80B82z1yZn for <incoming@patchwork.ozlabs.org>; Thu, 13 Apr 2023 18:41:28 +1000 (AEST) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4PxtN76s1nz4xDw for <incoming@patchwork.ozlabs.org>; Thu, 13 Apr 2023 18:41:27 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4PxtN76pd1z4xFd; Thu, 13 Apr 2023 18:41:27 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-ext4-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: gandalf.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=KMTTXSOX; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4PxtN76jmyz4xDw for <patchwork-incoming@ozlabs.org>; Thu, 13 Apr 2023 18:41:27 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229821AbjDMIl0 (ORCPT <rfc822;patchwork-incoming@ozlabs.org>); Thu, 13 Apr 2023 04:41:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbjDMIlV (ORCPT <rfc822;linux-ext4@vger.kernel.org>); Thu, 13 Apr 2023 04:41:21 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DAC283F8; Thu, 13 Apr 2023 01:41:20 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-517c0b93cedso766065a12.3; Thu, 13 Apr 2023 01:41:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681375279; x=1683967279; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7vOY0HWRCluzQ1SEYQtrOup46nyHU1j9BhalfWc1/Wc=; b=KMTTXSOXANgebirgVt+wchHwZzkayTSw3BuFu4iXn6HzRKkCIzB+3I/YWQgNBoFh1Q Wq8cdjBgZgcQV09d6Be/doiy6BrA6Apqqw1BL+pA1lCJFQ+fyBGb3QTzaqyfItyeep+S tN+9AVqSm7n6BHODomUwIkfg0wGbERKVEeNL1i8vLVFj8TQ1g6BXxVNL/BV0kF7rF6mc 2CBNQRaAQEjbAwaYheCR6i/2KzCpg/a2ulQ8tX1A93sGl4U3saeemfudLrr8fqtuWnrJ /mo4bR/rfqnZC1cW9uEwm9GCiq6xDneX+YJlhcLRbZgKmp+9MxDrAVTR0kjHtEA4m0D6 CL3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681375279; x=1683967279; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7vOY0HWRCluzQ1SEYQtrOup46nyHU1j9BhalfWc1/Wc=; b=DA6Tm3N1yye+1hg5Rl5epSQL9g7HTwufHpi3maUYTKpOFPwvnwKpmPsbfcPNdRH86v ia2QUAR73dCMhlbr2OI3CYgus2Dxq7+9eoLUktv6kdOd6tASV2rHB8R6nywUTheD4CEG moNLMW4q4OAm2gx5ubSBgVrCn0qO7PKS0GVGv1T+HzXqrUJNd1z/O/zpLEFmZ7AfesQY 4PMn8QOBVf9wE+KfjRD8ItEfzhJTqZGL5VAcIyvb1uqgF2SV5bv+yGt+QTUp0TmkMreV 8Jb3cVTH5jfrCXi9dFXewMEwlyzakDhz00rxwnejboBSzwxKkqsGtVULO04rIV3EApNb p1oQ== X-Gm-Message-State: AAQBX9ff3pREx6SfL6V31N5aEj6lPOO6uZrgWxztc/a6uJPj5GD0a4xg lHwfaoVsAqVvNeDvzeevP2hMiAbXQ6U= X-Google-Smtp-Source: AKy350b1aDn9aZOqquu4Oqle5qRZfHCedReJ/PdeFWRUHA7Dv0t8YcYgEjboqT/8t4M71aeg40sExw== X-Received: by 2002:a05:6a00:b84:b0:63b:4a65:e183 with SMTP id g4-20020a056a000b8400b0063b4a65e183mr1779438pfj.3.1681375279113; Thu, 13 Apr 2023 01:41:19 -0700 (PDT) Received: from rh-tp.. ([2406:7400:63:7035:9095:349e:5f0b:ded0]) by smtp.gmail.com with ESMTPSA id g8-20020aa78188000000b0063b23c92d02sm817243pfi.212.2023.04.13.01.41.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 01:41:18 -0700 (PDT) From: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com> To: linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Cc: Jan Kara <jack@suse.cz>, Christoph Hellwig <hch@infradead.org>, "Darrick J . Wong" <djwong@kernel.org>, Ojaswin Mujoo <ojaswin@linux.ibm.com>, Disha Goel <disgoel@linux.ibm.com>, "Ritesh Harjani (IBM)" <ritesh.list@gmail.com> Subject: [RFCv3 01/10] ext2/dax: Fix ext2_setsize when len is page aligned Date: Thu, 13 Apr 2023 14:10:23 +0530 Message-Id: <895d3405f4831be6936f3df280792bff8cc2d401.1681365596.git.ritesh.list@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <cover.1681365596.git.ritesh.list@gmail.com> References: <cover.1681365596.git.ritesh.list@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: <linux-ext4.vger.kernel.org> X-Mailing-List: linux-ext4@vger.kernel.org |
Series |
ext2: DIO to use iomap
|
expand
|
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index 26f135e7ffce..dc76147e7b07 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -1259,9 +1259,8 @@ static int ext2_setsize(struct inode *inode, loff_t newsize) inode_dio_wait(inode); if (IS_DAX(inode)) - error = dax_zero_range(inode, newsize, - PAGE_ALIGN(newsize) - newsize, NULL, - &ext2_iomap_ops); + error = dax_truncate_page(inode, newsize, NULL, + &ext2_iomap_ops); else error = block_truncate_page(inode->i_mapping, newsize, ext2_get_block);