Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp827093lqb; Wed, 17 Apr 2024 11:51:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVR+/HRf76PELnvjsKZhtKxdTz//NvJuw8rKSdC4Zj+abNU7chrX1Qq7Nf//OvL71793+6POWPac3RUmqK5JpenMgTme8GaNdHNLHIxA== X-Google-Smtp-Source: AGHT+IE8AJCJNxqH5TZna/Px5dgmGkAxIvK5TYXXQA3Q3cS/PWTnMcNNb4XzLP+ccxWWeEia7KIN X-Received: by 2002:a05:6359:4dc2:b0:17c:1e6c:14c0 with SMTP id pj2-20020a0563594dc200b0017c1e6c14c0mr142713rwb.16.1713379909749; Wed, 17 Apr 2024 11:51:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713379909; cv=pass; d=google.com; s=arc-20160816; b=iUVEv1FitmKY8vhzMJCrbFqTS4bOVe6aBoft24JQG2ZHhclejg1uv7THsmGcCQT4En 0BYBq8p3qmljPmviRBikGLOwbXlhrsSejgO/gkKLPp4ObduyXagMOQHGfF+dTyxVbCC/ 9EQAEyi8UcxbyF52wXT/dyeBozAjlJP7zqYcjrNRy0daUMw+wjAQcrS+iCy0AWKoFQBd ONle+/LqdTko0IuPv2OZ+0KqTAoaNQ8Y950WL1e4NMKfs4Ki7pe+rjaHC1QhOjj2CMxR x9F+u141TYo6SgkwsoRMXVk07QggWliJepZeHWQkX2xXeAD+cgU+N03IozebNbrE0nTV PSrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FNOr1el/BueGEYH9ReRV1YHomFZKKuDkdYF/EDGjHU8=; fh=ASA4uW5gtYMoWNLyZvQYwZhPpRGNe3Nns0LhFds7C00=; b=fufkYuvd8WozZa6QqY8UdY1dVN8ixiwgAA6aJyOgGxD6PzVdWvmJLDtb2vhNSJ+lef quo6MWHVBl4+1YHytNq/aPKmXeFpuQGRUA3ki5BpM/An32XwNnuBCJN8DrVd0AKkHVgR uJuZJODE3G2axymEwDbthGHf4JHUXXeKz/z8lfdeMPGexm/Pa0Hemg5cyUvelC+4Mruv kgJkGaA0jsM8VuKmg1TDeKu5siIH7IRa4EVhRloAtWGzW8fXZuaE0FY8AyvSjGUXYv4r mKP6SJ3po0aps5TuiVqUXemBAymWtIZgF60apnPJZ/O07RV1Eh92xwI/Ub1i+UaRczfW 4PSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jtNNgm+1; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-148908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148908-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g9-20020ac85d49000000b004346bb494f2si15745581qtx.729.2024.04.17.11.51.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 11:51:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148908-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=@infradead.org header.s=casper.20170209 header.b=jtNNgm+1; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-148908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148908-linux.lists.archive=gmail.com@vger.kernel.org" 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 EF3FA1C20C25 for ; Wed, 17 Apr 2024 16:25:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2C30148FE5; Wed, 17 Apr 2024 16:25:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="jtNNgm+1" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0DA18494; Wed, 17 Apr 2024 16:25:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713371146; cv=none; b=AdfmbonS+yKx3yTwy24Z5r1K0T2gsd+MSMYvtVHoMQ8NMC5XQAlnHkfpRwDW/SI2SFTCzOfFVajUA/aFdgYEiqlXo3mbHqYBLmfoP2nTqRkgY+LiRaHQlgKAQAZoI1ZEDkTIRtYzuQMCvCja3G9drZQxKBiidoeDBDd5yRtKDyE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713371146; c=relaxed/simple; bh=Cmxd7/+fzAymlG5WKKxHHTnTQ/RwUCLPsgb+KXnXIHc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C9WOX+eYBAgiJJbaTfzJpiW/aHN5hFiD1voMqHzbF8b5FdRV0J/lLy4CP5seuCBV9Y7t6YywxsghWr7kgp4V4K8/kwwC0AOh4u9t62AhUhsI+wmTAIQuAvL6JiFqlkYh/tajf9nJgKkyX9qKPchmvnrG/ODmLO8LFiHfGW/NEmM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=jtNNgm+1; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=FNOr1el/BueGEYH9ReRV1YHomFZKKuDkdYF/EDGjHU8=; b=jtNNgm+1Q1LqYI2cxmrIUJ02KX cuKxf9DRcotpjx6YqaIlJ4fymrsB4qadMxEWhsdlLa5G8wGM7Lo8s0h+QJQrTHxBLnkgyTOG84kP6 yqK9xBICWXAns7Hn/iDzVqnwkiBeh8mJVxI8F8BKoTFnkakyWLTmzaCPps7K+anem0en+YLJDC+0z lZ8iNCaWkNmfjtSIhxEZqggsTfGqA7wsRa83CJLKl/PVAE9icnZR2IUfXu1drhlmmbx+SNJQnz8uB YuemtwEdPZ++E5FwlwFWpQviq+DfouhD3Fc9RsjsMMkeJXevHfbdaix9sGhm1qmhCPBsvx884HXGh b5UD0HHQ==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rx868-00000003HUI-12g8; Wed, 17 Apr 2024 16:25:24 +0000 Date: Wed, 17 Apr 2024 17:25:24 +0100 From: Matthew Wilcox To: Kairui Song Cc: linux-mm@kvack.org, Andrew Morton , "Huang, Ying" , 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, Steve French , Namjae Jeon , Paulo Alcantara , Shyam Prasad N , Bharath SM Subject: Re: [PATCH 5/8] cifs: drop usage of page_file_offset Message-ID: References: <20240417160842.76665-1-ryncsn@gmail.com> <20240417160842.76665-6-ryncsn@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240417160842.76665-6-ryncsn@gmail.com> On Thu, Apr 18, 2024 at 12:08:39AM +0800, Kairui Song wrote: > +++ 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); loff_t offset = folio_pos(folio);