]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
gfs2: use iomap_readpage for blocksize == PAGE_SIZE
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 6 Jun 2018 19:30:38 +0000 (20:30 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 24 Jul 2018 22:08:49 +0000 (00:08 +0200)
commitf95cbb44abf9d6545769147d5abec4770c89872d
tree5a440755b5f26fb4cc3fec89b0b27d732ad53585
parent1d45bb7f9d2a5cbae1e5d9a5f72adad84db4d318
gfs2: use iomap_readpage for blocksize == PAGE_SIZE

We only use iomap_readpage for pages that don't have buffer heads
attached yet: iomap_readpage would otherwise read pages from disk that
are marked buffer_uptodate() but not PageUptodate().  Those pages may
actually contain data more recent than what's on disk.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/aops.c