diff options
| author | Mikulas Patocka <[email protected]> | 2011-05-09 11:01:09 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-05-09 23:22:07 +0000 |
| commit | a09a79f66874c905af35d5bb5e5f2fdc7b6b894d (patch) | |
| tree | 9cb2ae1fef7083af91a49c19411e9871e0e59a37 /fs/ubifs/commit.c | |
| parent | Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg... (diff) | |
| download | kernel-a09a79f66874c905af35d5bb5e5f2fdc7b6b894d.tar.gz kernel-a09a79f66874c905af35d5bb5e5f2fdc7b6b894d.zip | |
Don't lock guardpage if the stack is growing up
Linux kernel excludes guard page when performing mlock on a VMA with
down-growing stack. However, some architectures have up-growing stack
and locking the guard page should be excluded in this case too.
This patch fixes lvm2 on PA-RISC (and possibly other architectures with
up-growing stack). lvm2 calculates number of used pages when locking and
when unlocking and reports an internal error if the numbers mismatch.
[ Patch changed fairly extensively to also fix /proc/<pid>/maps for the
grows-up case, and to move things around a bit to clean it all up and
share the infrstructure with the /proc bits.
Tested on ia64 that has both grow-up and grow-down segments - Linus ]
Signed-off-by: Mikulas Patocka <[email protected]>
Tested-by: Tony Luck <[email protected]>
Cc: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/ubifs/commit.c')
0 files changed, 0 insertions, 0 deletions
