]> git.baikalelectronics.ru Git - kernel.git/commit
mm/filemap: Pass the file_ra_state in the ractl
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 7 Apr 2021 20:18:55 +0000 (21:18 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 23 Apr 2021 08:25:00 +0000 (09:25 +0100)
commit24e3fe31894bb8ea7db606b6d62d21726e3015e9
tree4a188d6754431b22be1913cf13841ca4d808bc87
parent27af6ace371311d0857061041654e47c37d340c6
mm/filemap: Pass the file_ra_state in the ractl

For readahead_expand(), we need to modify the file ra_state, so pass it
down by adding it to the ractl.  We have to do this because it's not always
the same as f_ra in the struct file that is already being passed.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Jeff Layton <jlayton@kernel.org>
Tested-by: Dave Wysochanski <dwysocha@redhat.com>
Tested-By: Marc Dionne <marc.dionne@auristor.com>
Link: https://lore.kernel.org/r/20210407201857.3582797-2-willy@infradead.org/
Link: https://lore.kernel.org/r/161789067431.6155.8063840447229665720.stgit@warthog.procyon.org.uk/
fs/ext4/verity.c
fs/f2fs/file.c
fs/f2fs/verity.c
include/linux/pagemap.h
mm/filemap.c
mm/internal.h
mm/readahead.c