Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp733222lqb; Wed, 17 Apr 2024 09:11:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2rIfrtBz2OAKqqlSC17yPcwhiThoX3UxtlvjYAuEgZCLI7N5ZFFHQc4fkeOyj5uf9dK9EwvwliAmQubWz3KOmjTHduRNXAVUsYRpXdw== X-Google-Smtp-Source: AGHT+IHyZDpmdnQpof+dRLYHdLEpHrFoPV/yeOutukb171UHqa8TB3FE4iko9eQPms2j+bBHIGfQ X-Received: by 2002:a05:620a:38d:b0:78d:32d3:8a52 with SMTP id q13-20020a05620a038d00b0078d32d38a52mr17080447qkm.22.1713370295165; Wed, 17 Apr 2024 09:11:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713370295; cv=pass; d=google.com; s=arc-20160816; b=A5UNgtzuHeK3RunO/LCq63vplb8pUl46rYF4jOR4AtOyiSjLbPSfNpxVYsWU+sRUJE t7kExkfYDTTYX/+y3+1LhdRVj+jp8hSFoaYLUdMh/dbLjtcLvirhAux1TZvLZlpVRsvK lZGNwTfINwOXc2scDVkPGJRk6LLFfzku7Zgk+UNC9wf+OeHTkwWcLZb0vzyzqqQyc46c gcI4R+c6hMWpV8KEvUpbwqyKPKYfDeAAYY95ekYxaRxigtXj8e6LsClhTaX8r6XKd6fB Tk/HLzGg987mdV+9SsMv22Csate831YQ5C0SWFnSwF/DNmcwV4tG3MzQHAyhaVs+Q1cc /Myw== ARC-Message-Signature: i=2; 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:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=QKsmOxPUvJ8jFqBm63ArqbRFjM5INLEtk88J9DbM67E=; fh=Rukhep0EVOVPuImKSKpCU7hw5Yypuf00W/0lgvLHOcA=; b=T92RdkLNILc9F5+oGUVdCh96Kyc647gs/MW3F70suWuNueskQuMD15hSqqzQBEV01w txc63WoSRPW1+vPXTrm2G1cnIAVF+A/JDGf8m2O8mHWosC7yUIy7+dkKgbBCvxnvj0oS rc8MmVLqW4XRBYUA1NQqMBdlpklnJC6TuvF6eX9MzIrIR7BrdFZnACgkFfAQpgX6myDv EodMhbZAg2lQvWGLCj06/Wc4liVGQxG5bufOPxZ1r+e7X5uyT0ZzOnYwymiUEP8spelz UujXLpeGRV3INEUR7YfUYnX34PAxuFkmTVu3LfNECSoklQlBPonGOWqj9N0MgGNkpP/s bRjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PBq+XjkA; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-148881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148881-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id br39-20020a05620a462700b0078ee76a9007si8614676qkb.283.2024.04.17.09.11.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 09:11:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PBq+XjkA; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-148881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148881-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DD0BA1C220BC for ; Wed, 17 Apr 2024 16:11:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0034148FFB; Wed, 17 Apr 2024 16:10:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PBq+XjkA" Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCAD715DBBC; Wed, 17 Apr 2024 16:10:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713370205; cv=none; b=qlxCv6ealdAyXzinLY6URJhSztTPLGUlAx+9BUuk56op7Nkg+kwTCEk8Cvm08tL8q4Tt4uOyB0l+xgS01ZUtDTqdYvSdVZQ5E5U6pt7vNLXNqPOklJp/SQjdj9iF3n+I7a3jR6Z8xwkzyVgnXCJmjNNGpFluZb5ouxgsLwyHSD4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713370205; c=relaxed/simple; bh=lRmS0vfrkRgKu2V0vYqMI+J5yAkmvRW6Rx0XntA+fCg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p41E0ihp1WrSd1yYAvH5WhdUGhuyG+2zpWnnCrA8zX0+HVyx+h+DuJ5xwHYylo685lvHDR7Tqi0j6w8lVilAOU6WcUW4bw36OCwibcAhOVj1zsqaHAPeSlFxOLaFV79DuO0SZzr1w+32mXeqnwNPpTLcR1kKtdNRg29MT78iHjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PBq+XjkA; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6ed11782727so4971254b3a.1; Wed, 17 Apr 2024 09:10:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713370203; x=1713975003; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=QKsmOxPUvJ8jFqBm63ArqbRFjM5INLEtk88J9DbM67E=; b=PBq+XjkAZNsNqLL3kptoBsgjyTBVKvmWpyas6Rez1zBGm2ttk5bUjJu77Rt88CFXAm jD1he8mhheKxweCR09JezTPnXszkUdWOpuua1pJvBjq0gEMD1PW5u7Hv3tR9+VTJcFVX 2voGQhPbKbNd5KOd6MHeZljRx9T1RrfDRa6PQV7y2elsNNYXYkmm4cSComk8UUQdtQIB LLhsZBiwhVUn32LgHS0qs3kNrpMAOpLIowSgNCc3rOw2co6gvPS+Jc2VD/BeiABuSWid Fiz88PW1GlZrukGv9DMyX1M7Nuv47zti+kXRugiBu52fhXFgyPaaYgsAYmUp+6TVN18F Xnkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713370203; x=1713975003; h=content-transfer-encoding:mime-version:reply-to: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=QKsmOxPUvJ8jFqBm63ArqbRFjM5INLEtk88J9DbM67E=; b=petvuo8c3apcCjWornrRO1+4u+5mkjZgtqeyTASohLvisFL9xz8mNpFNQlmbxLLNlW ULfdl7Qx0tlcymHjWA2+wx7XAWS+jLElF4TiZi8EVUmG4xaMlWdh37dnEph/Ddpu+eKf 8mnlLUGH+51ZHVb+IkGpTZxjCFTxOj17xVi90xPuYgGjpCYwIIKc0T79SV1vKkApeY1d ADgGDJ4IZw9kfaiKReAbE41RVYsYhgbZJEAv9BKDrWQLmAkHWLzw7OkzcgLpGpfLMPuu lN6jZSjQi5grVRyRmWMePujSrhPNYDvbdoA3B3A8l46KIsJ+1exJh5bPpLY1gIrp8xH8 k1oQ== X-Forwarded-Encrypted: i=1; AJvYcCWExE4FcJJJJgfnXtoVpuiydkMSpbu18ZvEILoZropgP7DdbdP8XkYbeD80WfsX97nscZorZv1Lo7GQmqltkSrbd2xXSzYgz5gY91obWcNY3w6/4E6ep7ARdVzWUak7J4gzXLeNcI20LGyG7Q== X-Gm-Message-State: AOJu0YyWLZqWGRokLo+JtBncIxk1MerPZIe8Or9OYt0RTBU2TAXvcBRL UcZl77PX7k14+2ObV6xz3pee3w4SpxBys9Tfs3X7eRFe+jRhZmjW X-Received: by 2002:a05:6a21:8189:b0:1aa:58d9:1825 with SMTP id pd9-20020a056a21818900b001aa58d91825mr83965pzb.3.1713370203077; Wed, 17 Apr 2024 09:10:03 -0700 (PDT) Received: from KASONG-MB2.tencent.com ([115.171.40.106]) by smtp.gmail.com with ESMTPSA id h189-20020a6383c6000000b005f75cf4db92sm5708366pge.82.2024.04.17.09.09.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 17 Apr 2024 09:10:01 -0700 (PDT) From: Kairui Song To: linux-mm@kvack.org Cc: Andrew Morton , "Huang, Ying" , Matthew Wilcox , Chris Li , Barry Song , Ryan Roberts , Neil Brown , Minchan Kim , Hugh Dickins , David Hildenbrand , Yosry Ahmed , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Kairui Song , Steve French , Namjae Jeon , Paulo Alcantara , Shyam Prasad N , Bharath SM Subject: [PATCH 5/8] cifs: drop usage of page_file_offset Date: Thu, 18 Apr 2024 00:08:39 +0800 Message-ID: <20240417160842.76665-6-ryncsn@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240417160842.76665-1-ryncsn@gmail.com> References: <20240417160842.76665-1-ryncsn@gmail.com> Reply-To: Kairui Song Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Kairui Song page_file_offset is only needed for mixed usage of page cache and swap cache, for pure page cache usage, the caller can just use page_offset instead. It can't be a swap cache page here, so just drop it. Signed-off-by: Kairui Song Cc: Steve French Cc: Namjae Jeon Cc: Paulo Alcantara Cc: Shyam Prasad N Cc: Bharath SM --- fs/smb/client/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/smb/client/file.c b/fs/smb/client/file.c index 16aadce492b2..73bbd761bf32 100644 --- a/fs/smb/client/file.c +++ b/fs/smb/client/file.c @@ -4749,7 +4749,7 @@ static int cifs_readpage_worker(struct file *file, struct page *page, static int cifs_read_folio(struct file *file, struct folio *folio) { struct page *page = &folio->page; - loff_t offset = page_file_offset(page); + loff_t offset = page_offset(page); int rc = -EACCES; unsigned int xid; -- 2.44.0