filemap: consistently use ->f_mapping over ->i_mapping
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Nov 2020 13:33:37 +0000 (14:33 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:38 +0000 (14:53 -0700)
commit5df1a6726973ee2444e11f16daa013971dc52e8b
treea0f4c09471c688bfaa3e8511cef5b3d521add049
parent5a20d073ec54a72d9a732fa44bfe14954eb6332f
filemap: consistently use ->f_mapping over ->i_mapping

Use file->f_mapping in all remaining places that have a struct file
available to properly handle the case where inode->i_mapping !=
file_inode(file)->i_mapping.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/filemap.c