Christian König 2b5b95b1ff mm: introduce vma_set_file function v4
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.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> (v2)
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/394773/
2020-11-05 13:03:52 +01:00
..
2020-09-29 10:20:51 +10:00
2020-09-29 10:20:51 +10:00
2020-07-31 06:46:16 -07:00
2020-07-31 06:46:16 -07:00
2020-09-22 08:28:15 -07:00
2020-09-22 08:28:15 -07:00
2020-10-15 10:46:16 -07:00