Files
Linux/include/linux
Christian König 295992fb81 mm: introduce vma_set_file function v5
Add the new vma_set_file() function to allow changing
vma->vm_file with the necessary refcount dance.

v2: add more users of this.
v3: add missing EXPORT_SYMBOL, rebase on mmap cleanup,
    add comments why we drop the reference on two occasions.
v4: make it clear that changing an anonymous vma is illegal.
v5: move vma_set_file to mm/util.c

Signed-off-by: Christian König <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]> (v2)
Reviewed-by: Jason Gunthorpe <[email protected]>
Acked-by: Andrew Morton <[email protected]>
Link: https://patchwork.freedesktop.org/patch/399360/
2020-11-19 10:36:36 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-10-28 13:18:56 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-10-02 14:59:25 -07:00
…
…
…
2020-09-21 15:00:40 -07:00
2020-10-02 15:00:49 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-10-16 17:21:51 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-11-16 16:31:41 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-30 22:44:26 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-16 08:54:53 -05:00
…
…
…
…
…
…
2020-10-28 13:42:36 -04:00
2020-10-13 18:38:32 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-04 09:25:20 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-23 18:02:49 -07:00
…
…
…
…
…
…
…
2020-11-19 10:36:36 +01:00
2020-09-04 12:46:07 +01:00
…
…
2020-08-27 16:06:47 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-10-07 14:28:39 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-24 19:49:36 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-08-31 12:52:33 -07:00
…
…
…
…
2020-10-28 11:41:15 -06:00
2020-10-18 09:27:10 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-11-06 10:05:18 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-26 22:55:05 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-10 14:03:31 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-10-18 09:27:10 -07:00
…
…
…
…
…
…
2020-10-05 13:21:49 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…