Skip to content

Commit

Permalink
mm: don't use the same value for MAP_FIXED_NOREPLACE and MAP_SYNC
Browse files Browse the repository at this point in the history
Link: http://lkml.kernel.org/r/[email protected]
Fixes: ("fs, elf: drop MAP_FIXED usage from elf_map")
Signed-off-by: Andrei Vagin <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
avagin authored and hnaz committed Jan 5, 2018
1 parent d6f9820 commit ddbaf54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/uapi/asm-generic/mman-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
#else
# define MAP_UNINITIALIZED 0x0 /* Don't support this flag */
#endif
#define MAP_FIXED_NOREPLACE 0x80000 /* MAP_FIXED which doesn't unmap underlying mapping */

/* 0x0100 - 0x80000 flags are defined in asm-generic/mman.h */
#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED which doesn't unmap underlying mapping */

/*
* Flags for mlock
Expand Down

0 comments on commit ddbaf54

Please sign in to comment.