lkml.org 
[lkml]   [2020]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm: change prev_offset type to unsigned long
On Mon, Aug 17, 2020 at 05:06:37PM +0200, Bean Huo wrote:
> From: Bean Huo <beanhuo@micron.com>

There's no description. Please explain why this patch is needed.

> Signed-off-by: Bean Huo <beanhuo@micron.com>
> ---
> mm/filemap.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/filemap.c b/mm/filemap.c
> index cf4bdf7803b6..d736c7a4b826 100644
> --- a/mm/filemap.c
> +++ b/mm/filemap.c
> @@ -2025,7 +2025,7 @@ ssize_t generic_file_buffered_read(struct kiocb *iocb,
> pgoff_t last_index;
> pgoff_t prev_index;
> unsigned long offset; /* offset into pagecache page */
> - unsigned int prev_offset;
> + unsigned long prev_offset;
> int error = 0;
>
> if (unlikely(*ppos >= inode->i_sb->s_maxbytes))
> --
> 2.17.1
>
>

\
 
 \ /
  Last update: 2020-08-17 21:51    [W:0.048 / U:1.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site