lkml.org 
[lkml]   [2024]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/8] cifs: drop usage of page_file_offset
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);

\
 
 \ /
  Last update: 2024-04-17 18:25    [W:1.138 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site