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/ # v6
Showing
- fs/ext4/verity.c 1 addition, 1 deletionfs/ext4/verity.c
- fs/f2fs/file.c 1 addition, 1 deletionfs/f2fs/file.c
- fs/f2fs/verity.c 1 addition, 1 deletionfs/f2fs/verity.c
- include/linux/pagemap.h 11 additions, 9 deletionsinclude/linux/pagemap.h
- mm/filemap.c 2 additions, 2 deletionsmm/filemap.c
- mm/internal.h 3 additions, 4 deletionsmm/internal.h
- mm/readahead.c 11 additions, 11 deletionsmm/readahead.c
Please register or sign in to comment