Peter Xu ca6eb14d64 mm: use is_cow_mapping() across tree where proper
After is_cow_mapping() is exported in mm.h, replace some manual checks
elsewhere throughout the tree but start to use the new helper.

Link: https://lkml.kernel.org/r/20210217233547.93892-5-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Jason Gunthorpe <jgg@ziepe.ca>
Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
Cc: Roland Scheidegger <sroland@vmware.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Gal Pressman <galpress@amazon.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Jann Horn <jannh@google.com>
Cc: Kirill Shutemov <kirill@shutemov.name>
Cc: Kirill Tkhai <ktkhai@virtuozzo.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: Wei Zhang <wzam@amazon.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-03-13 11:27:30 -08:00
..
2021-01-07 10:46:32 +01:00
2021-02-21 14:44:44 -08:00
2021-02-22 08:50:01 -08:00
2020-08-06 14:27:31 -07:00
2020-12-15 10:21:48 +01:00
2021-02-05 09:25:26 +10:00
2021-02-25 12:10:22 -08:00
2021-02-22 14:27:07 -08:00
2020-12-15 15:46:03 +02:00
2021-02-21 14:44:44 -08:00
2021-03-11 11:11:33 +01:00
2021-02-21 14:44:44 -08:00
2021-01-25 14:35:44 +10:00
2021-02-21 14:44:44 -08:00
2021-01-04 12:59:33 +01:00
2020-09-21 10:45:08 +02:00
2020-08-11 11:58:31 +10:00
2021-01-07 13:40:20 +01:00
2020-08-11 11:58:31 +10:00
2021-01-25 14:35:44 +10:00
2021-01-20 10:28:39 +01:00