Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2451477rdb; Mon, 20 Nov 2023 11:05:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5q6rXNL2P+xis/kN3KrZ99KR+zQ9LptJ9rP0Npcw5T65gh9+HIBMnS5FdxsmtXbMWPvwi X-Received: by 2002:a05:6512:285:b0:50a:a499:c6a6 with SMTP id j5-20020a056512028500b0050aa499c6a6mr5708061lfp.22.1700507146000; Mon, 20 Nov 2023 11:05:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700507145; cv=none; d=google.com; s=arc-20160816; b=sTkA8O+S14Tt/Fr+eGFdHH9syV0FTsTzKdJBpoDUqmK2VjAiuY2jRUuaoLTH92j+2Q GW6OJOG1M2Lda/qmi0hKZbFgqZ859sXrIUGDtG1jJmoJnNJxZJl0bVEqGofy6ci9mQNG T978eljZqxKHI36d9AyZUYDMa2ZXiX8+prXDc2F/hw1poqttX8WFjdpNe7E9HxskuORW mplzgqtjcQ4hCyXPzwC9s03FRUsxxG3jJ3KdZ2YZ43hKn4XvTtUAGw9DQJ235LzLBwTH Q/CHy4Ym4upiYCga3zsWSEU6Rj7OraDk/dALWH//9z6OP5KcFG95qfEPUt8Apx3huxfa PADg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Zd++HJYMLvpd7mdF+UkLdm6vt1MAuB0fn/E4Eq0fcFU=; fh=q2T2uyxabLuVX4S/W8NZDfBohRfsbIIcfEh1O14vzCc=; b=zN7gcExjsA89KBORAogMbfuAf3Ri2jEFpzPrx78HT4U9b6x1YML1G24unaElMgsYMw vXiVWTG1BjAslDxY0xxt9GpczlWvwVKuUss4Q2udYNS5BKWC9Gg4XJVNtXmvEIDuhhnc 9mW1+cDs/1C0EXfw96MLsIhZ9MyxGwz34mk/RhD9B1voBf7vWLV4da9hzDQ+N63+R0GC bRLF00xgp4Y/zV4qc7VLV+TJmBrHAsJKD0rnyBOG4plMlYWMJCwDe2/zmDMVxew/WsmD 0U9SCWRWx/aViJjhYzfqQXsUv78jkLi6jUFON9N/LemEgQb9sYDSWKXE8hfw35DP5jhj J5rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="if/eOK5X"; spf=pass (google.com: domain of linux-ext4+bounces-44-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-44-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i10-20020aa7c70a000000b00548b8c04a91si1364023edq.264.2023.11.20.11.05.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 11:05:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-44-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="if/eOK5X"; spf=pass (google.com: domain of linux-ext4+bounces-44-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-44-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B8F6E1F25DF7 for ; Mon, 20 Nov 2023 19:05:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9631234571; Mon, 20 Nov 2023 19:05:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="if/eOK5X" X-Original-To: linux-ext4@vger.kernel.org Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 134079C; Mon, 20 Nov 2023 11:05:32 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6c32a20d5dbso4153373b3a.1; Mon, 20 Nov 2023 11:05:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700507130; x=1701111930; darn=vger.kernel.org; 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=Zd++HJYMLvpd7mdF+UkLdm6vt1MAuB0fn/E4Eq0fcFU=; b=if/eOK5XrxCd2u/uCjsEBi9plGoijkoLtmhAj6ul9Jyzd2FyJuyI0DQYO8Q1wOMa+C hIbDWbgbeILfY7HkVOiePPhsbKBPEI46SjubaToGmhXNCpPcvbJCg2GGuHq7qiUM8hZ9 4NLiiqGlisjsjKEVwE3nYYq4FaZG1XvVsmF6YQrjHKz62U+Iw5XrwhwUmfxIE98ZMzNd zRf4S1LV6HygGwRgHRhJRXqlnzhZgcEN8b2u2V15VEzcvdqpMwU+C2PwzfIrmViEK2KT r70vPjt+p3NH778Ug/WV7wj5Z932gwcW6zAEomI+yMp6ds97cV0KU2/itxe2OCFQu4ak IInQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700507130; x=1701111930; 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=Zd++HJYMLvpd7mdF+UkLdm6vt1MAuB0fn/E4Eq0fcFU=; b=WV/tQMW/PlPPdVH1NXC/ha9NRSrqvPmpRQSvPmztbzbURQBXEXg8+yB/rij6kX1iX1 6NgQNgfxBiZ8KQoinZKM8oOslgMKV3Ewso0PCvr4hhHJ/SpIbdpi0TeL8v4WhtGyaJvE wwqSxsvdJjjaMgQbT17Agj2lWAS/ajX4HPIUGxvfD1KO4Zs3MNc/Spg59fu8K0spp1+X kPyVStRD8Y12kx5nlYiMDyks1C1jpfMAJ/25J3DqBxcMUKG136qSdU0QIf3PS7rkT0Tc sBZTjZmAtleoo1LSqtFDCmypTyr/4vYvK2KocgRyaOOppvNfYmlXccHh2wek5l9FKoZI MXTA== X-Gm-Message-State: AOJu0Ywe31kLAHsIPSpSfMATBwgTcZUUhLBVn0L7vhLLCGdIS4/67dwb U1aLjog/uuaR+peC+n/sHk6hIP41fXc= X-Received: by 2002:a05:6a20:9188:b0:187:c2be:3c41 with SMTP id v8-20020a056a20918800b00187c2be3c41mr7602932pzd.1.1700507130541; Mon, 20 Nov 2023 11:05:30 -0800 (PST) Received: from dw-tp.localdomain ([49.205.218.89]) by smtp.gmail.com with ESMTPSA id y10-20020a62f24a000000b006c69851c7c9sm6353699pfl.181.2023.11.20.11.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 11:05:29 -0800 (PST) From: "Ritesh Harjani (IBM)" To: linux-ext4@vger.kernel.org Cc: Jan Kara , linux-fsdevel@vger.kernel.org, "Ritesh Harjani (IBM)" Subject: [RFC 1/3] ext2: Fix ki_pos update for DIO buffered-io fallback case Date: Tue, 21 Nov 2023 00:35:19 +0530 Message-ID: <9cdd449fc1d63cf2dba17cfa2fa7fb29b8f96a46.1700506526.git.ritesh.list@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Commit "filemap: update ki_pos in generic_perform_write", made updating of ki_pos into common code in generic_perform_write() function. This also causes generic/091 to fail. Fixes: 182c25e9c157 ("filemap: update ki_pos in generic_perform_write") Signed-off-by: Ritesh Harjani (IBM) --- fs/ext2/file.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ext2/file.c b/fs/ext2/file.c index 1039e5bf90af..4ddc36f4dbd4 100644 --- a/fs/ext2/file.c +++ b/fs/ext2/file.c @@ -258,7 +258,6 @@ static ssize_t ext2_dio_write_iter(struct kiocb *iocb, struct iov_iter *from) goto out_unlock; } - iocb->ki_pos += status; ret += status; endbyte = pos + status - 1; ret2 = filemap_write_and_wait_range(inode->i_mapping, pos, -- 2.41.0