Message ID | ea86887ea40e0f3f0c25ce1614191d94c966efd0.1681544352.git.ritesh.list@gmail.com |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <SRS0=2lEh=AG=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=2leh=ag=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=AVvSWhnr; 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) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Pz51y0qnfz23rw for <incoming@patchwork.ozlabs.org>; Sat, 15 Apr 2023 17:44:54 +1000 (AEST) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4Pz51x2NyYz4xD5 for <incoming@patchwork.ozlabs.org>; Sat, 15 Apr 2023 17:44:53 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4Pz51x2LHwz4xFL; Sat, 15 Apr 2023 17:44:53 +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=AVvSWhnr; 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 4Pz51x2FM2z4xD5 for <patchwork-incoming@ozlabs.org>; Sat, 15 Apr 2023 17:44:53 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229647AbjDOHou (ORCPT <rfc822;patchwork-incoming@ozlabs.org>); Sat, 15 Apr 2023 03:44:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbjDOHon (ORCPT <rfc822;linux-ext4@vger.kernel.org>); Sat, 15 Apr 2023 03:44:43 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66BC57EF4; Sat, 15 Apr 2023 00:44:42 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-63b5c4c76aaso488380b3a.2; Sat, 15 Apr 2023 00:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681544681; x=1684136681; 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=AVvSWhnrwAMRCIdKokU7uzmWCuYDUfPc34wSJo/z5Zo7GVRd6m1pYqlJQnsqUSzuNH 999XGdnlXt7lqrZcivo7PFXlrIIDJVXJDOIya9ktN7b8n/dTEmNE379MEJmQEASeBRhh oXxISc6V+IOikMb2Rw/2Hi7QpEmfxKpjUEDR+BniA47RNmZBW1YNoHSv28DJfEjDpODL qMnHD4oKlUI9UfAxH55DU+jRs/yOWVCHxPsfQvcgQS3EUUNN1bMRmnpwzyW+OirEMDt9 6lhei7vBvojNw/5eId78jHKunCMtlJXdcQ0jFHszXdlmGAInxhUQ4Vx5c3RclTy9LY5F vkWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681544681; x=1684136681; 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=dLidJ4lWDB4T5dYpikQS5jb/wWMfI5jiV1YVZUIouQvC8Ox1Z68Atqm0YeMcdirwDE q/GEywQswfrcjPMoBYeP22T2Y7RVCfVj+3yZTrwn8XAP7vUKB6kF3HXkiy7Q803xD/Lw B9A9l2RgjSWmbDs3Fzce5vnCVCYKUQsFVtlA1yMzlo87ai1GpoLDb7HO8j/7UEcTv2Jc qJhpZGChBPF/+CFCbRaQmR8Mp1szOjjQ4JLY6FT8CAZ7t+Q5tMNS+zqYN2XMZy3U+h7U 8L/ZgMDgmGZXU+H5jTvQ4xqa8r7n/OHN3JlcBjFax+xuFACm1oDs1qef/QSdECTuaI1h oHjg== X-Gm-Message-State: AAQBX9eF7wlMdniJclckZhFM/v6eZlCl52oMY7bxtxUX/nq0WS3MC3Xp litalXcmC61XSevWvHdHPBLnIfoMqEc= X-Google-Smtp-Source: AKy350YIEcGHEax4uzNq4buxjf4mwsz1Fw7BeaZlYji1LG+NEq8La8T60pKIznx4AoL0ilKpgTmGRw== X-Received: by 2002:a05:6a00:2eaa:b0:638:edbc:74ca with SMTP id fd42-20020a056a002eaa00b00638edbc74camr12805761pfb.0.1681544681369; Sat, 15 Apr 2023 00:44:41 -0700 (PDT) Received: from rh-tp.. ([2406:7400:63:2dd2:1827:1d70:2273:8ee0]) by smtp.gmail.com with ESMTPSA id e21-20020aa78255000000b0063b675f01a5sm2338789pfn.11.2023.04.15.00.44.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Apr 2023 00:44:41 -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: [RFCv4 1/9] ext2/dax: Fix ext2_setsize when len is page aligned Date: Sat, 15 Apr 2023 13:14:22 +0530 Message-Id: <ea86887ea40e0f3f0c25ce1614191d94c966efd0.1681544352.git.ritesh.list@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <cover.1681544352.git.ritesh.list@gmail.com> References: <cover.1681544352.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);