diff options
author | Wei Yang <[email protected]> | 2020-10-13 16:54:07 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-10-13 18:38:31 -0700 |
commit | 0fc48a6e213ab8e4033d26bd8333ee8558f210f6 (patch) | |
tree | b3b29985ac07eac622e07b66802a96a45c041722 /include/linux/string_helpers.h | |
parent | 808fbdbea05f1e965da5b887d808025ba22c1946 (diff) |
mm/mmap: check on file instead of the rb_root_cached of its address_space
In __vma_adjust(), we do the check on *root* to decide whether to adjust
the address_space. It seems to be more meaningful to do the check on
*file* itself. This means we are adjusting some data because it is a file
backed vma.
Since we seem to assume the address_space is valid if it is a file backed
vma, let's just replace *root* with *file* here.
Signed-off-by: Wei Yang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/string_helpers.h')
0 files changed, 0 insertions, 0 deletions