Searched hist:"779750 d20b93bb2e0c75dfe924f31b02f6a78bfa" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/linux/ |
H A D | shmem_fs.h | diff 779750d20b93bb2e0c75dfe924f31b02f6a78bfa Tue Jul 26 17:26:38 CDT 2016 Kirill A. Shutemov <kirill.shutemov@linux.intel.com> shmem: split huge pages beyond i_size under memory pressure
Even if user asked to allocate huge pages always (huge=always), we should be able to free up some memory by splitting pages which are partly byound i_size if memory presure comes or once we hit limit on filesystem size (-o size=).
In order to do this we maintain per-superblock list of inodes, which potentially have huge pages on the border of file size.
Per-fs shrinker can reclaim memory by splitting such pages.
If we hit -ENOSPC during shmem_getpage_gfp(), we try to split a page to free up space on the filesystem and retry allocation if it succeed.
Link: http://lkml.kernel.org/r/1466021202-61880-37-git-send-email-kirill.shutemov@linux.intel.com Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
/openbmc/linux/mm/ |
H A D | shmem.c | diff 779750d20b93bb2e0c75dfe924f31b02f6a78bfa Tue Jul 26 17:26:38 CDT 2016 Kirill A. Shutemov <kirill.shutemov@linux.intel.com> shmem: split huge pages beyond i_size under memory pressure
Even if user asked to allocate huge pages always (huge=always), we should be able to free up some memory by splitting pages which are partly byound i_size if memory presure comes or once we hit limit on filesystem size (-o size=).
In order to do this we maintain per-superblock list of inodes, which potentially have huge pages on the border of file size.
Per-fs shrinker can reclaim memory by splitting such pages.
If we hit -ENOSPC during shmem_getpage_gfp(), we try to split a page to free up space on the filesystem and retry allocation if it succeed.
Link: http://lkml.kernel.org/r/1466021202-61880-37-git-send-email-kirill.shutemov@linux.intel.com Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|