mm: factor commit limit calculation
The same calculation is currently done in three differents places. Factor that code so future changes has to be made at only one place. [akpm@linux-foundation.org: uninline vm_commit_limit()] Signed-off-by: Jerome Marchand <jmarchan@redhat.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
715ea41e60
commit
00619bcc44
5 changed files with 18 additions and 9 deletions
|
@ -87,4 +87,6 @@ calc_vm_flag_bits(unsigned long flags)
|
|||
_calc_vm_trans(flags, MAP_DENYWRITE, VM_DENYWRITE ) |
|
||||
_calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED );
|
||||
}
|
||||
|
||||
unsigned long vm_commit_limit(void);
|
||||
#endif /* _LINUX_MMAN_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue