Thread (8 messages) 8 messages, 3 authors, 2018-08-08

Re: [PATCH] mm: adjust max read count in generic_file_buffered_read()

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2018-07-20 23:14:29
Also in: linux-fsdevel, lkml

On Thu, 19 Jul 2018 10:58:12 +0200 Jan Kara [off-list ref] wrote:
On Thu 19-07-18 16:17:26, Chengguang Xu wrote:
quoted
When we try to truncate read count in generic_file_buffered_read(),
should deliver (sb->s_maxbytes - offset) as maximum count not
sb->s_maxbytes itself.

Signed-off-by: Chengguang Xu <redacted>
Looks good to me. You can add:

Reviewed-by: Jan Kara <jack@suse.cz>
Yup.

What are the runtime effects of this bug?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help