Message ID | 046a58317f29d9603d1068b2bbae47c2332c17ae.1682069716.git.ritesh.list@gmail.com |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <SRS0=MvZt=AM=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=2404:9400:2221:ea00::3; helo=gandalf.ozlabs.org; envelope-from=srs0=mvzt=am=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=jkkCS7Pu; dkim-atps=neutral Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (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 4Q2qSH54tjz23tm for <incoming@patchwork.ozlabs.org>; Fri, 21 Apr 2023 19:47:11 +1000 (AEST) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4Q2qSC49RXz4xDr for <incoming@patchwork.ozlabs.org>; Fri, 21 Apr 2023 19:47:07 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4Q2qSC3wl8z4xDt; Fri, 21 Apr 2023 19:47:07 +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=jkkCS7Pu; 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 4Q2qSC3qdlz4xDr for <patchwork-incoming@ozlabs.org>; Fri, 21 Apr 2023 19:47:07 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232022AbjDUJrE (ORCPT <rfc822;patchwork-incoming@ozlabs.org>); Fri, 21 Apr 2023 05:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231685AbjDUJrC (ORCPT <rfc822;linux-ext4@vger.kernel.org>); Fri, 21 Apr 2023 05:47:02 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FEB3B465; Fri, 21 Apr 2023 02:46:33 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-63d4595d60fso13137541b3a.0; Fri, 21 Apr 2023 02:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682070392; x=1684662392; 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=jkkCS7PuEh3526LzSpWKzpHxZ3Ic465fjv9ZFhiU4j1miKRpf+xMbr7e7iISfr3d6b 7TL89G86nQDO/9bOXqjJwzwJboEMBtUfp2kRQChl6u/8ZBjDjfuMJyyR913/pWmPc+r6 h5JvEIcpofmc4QPTmTP3q4RnSYTzgnVpRRSOdGzqAV53Rd9GeHZxzNFd5vX0iPmM67Zx amnlaQ+PYGeXQOtKSyngE2Pe7FEGtDJOX0Hy7XBWfDvAFUJCOKZcdtZo/Pz3SHxImBQu CrGni7I07kJHdKDDVW5xQZT3JIqaxobfoob6kTBokTwZmTn7rA2tnCS81OQ7bGvxGFvc zEeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682070392; x=1684662392; 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=O0aDtPOJEVuxKUBPWmK7SWIuBGyAT2rFxcz+rN10gJqq9zX0vRHAaOvXeOO7asTUOV 3kHlGcZg90AS84jY7ORl8t0gzqTDLOArOEv26aYVGlsUTYFhj7PsluuF8neBp3h9R8B6 VJU3VEzG4IvD1zCybjcOCAZwJZjlECjup6xzkpHq4pHrmVzQ2dI9rBWRIHN5cUAo6VBW /NmM8P0OG8lTdwim6DTOFkwDUjgdSB+KUPV7JlZ97j9n/DMqdKGU0Vak79FnAOPoHa1s GiohYLxJ+656cQ11WXxDkhvKTF6xExZRErRoL6O8By/DLtl3P1Cu8+YcZ8m/qURSaWOK YfXA== X-Gm-Message-State: AAQBX9fbAAdbOS0rcZevFk+OsdVSOEHD48Vh/LoAivkSvuuuYnXqAyWc NQxOwBdvIhCo6TkJU2i29JdJuEoBGsQ= X-Google-Smtp-Source: AKy350YMVLdsEXRtMMFWx2K2YW0c5tEwp5xRt/2P9Kr/EhIB0wute1PjXwSQzz69vJcgQRpHGUmV3w== X-Received: by 2002:a05:6a21:339a:b0:e3:f25b:613f with SMTP id yy26-20020a056a21339a00b000e3f25b613fmr5320280pzb.14.1682070391728; Fri, 21 Apr 2023 02:46:31 -0700 (PDT) Received: from rh-tp.. ([2406:7400:63:2dd2:8818:e6e1:3a73:368c]) by smtp.gmail.com with ESMTPSA id w35-20020a631623000000b0051f15c575fesm2295376pgl.87.2023.04.21.02.46.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 02:46:31 -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: [PATCHv6 1/9] ext2/dax: Fix ext2_setsize when len is page aligned Date: Fri, 21 Apr 2023 15:16:11 +0530 Message-Id: <046a58317f29d9603d1068b2bbae47c2332c17ae.1682069716.git.ritesh.list@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <cover.1682069716.git.ritesh.list@gmail.com> References: <cover.1682069716.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,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: <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);