]> git.baikalelectronics.ru Git - kernel.git/commit
fs/buffer.c: support buffer cache allocations with gfp modifiers
authorGioh Kim <gioh.kim@lge.com>
Fri, 5 Sep 2014 02:04:42 +0000 (22:04 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 5 Sep 2014 02:04:42 +0000 (22:04 -0400)
commit1d2e3e8c80db66e264a59fe9adc2bceb02afc0e5
treebd1105d5eafdf980633ea5735b75e20af9f614ad
parent378b281174af5fca61a989d21db5f8bdaed0efdc
fs/buffer.c: support buffer cache allocations with gfp modifiers

A buffer cache is allocated from movable area because it is referred
for a while and released soon.  But some filesystems are taking buffer
cache for a long time and it can disturb page migration.

New APIs are introduced to allocate buffer cache with user specific
flag.  *_gfp APIs are for user want to set page allocation flag for
page cache allocation.  And *_unmovable APIs are for the user wants to
allocate page cache from non-movable area.

Signed-off-by: Gioh Kim <gioh.kim@lge.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/buffer.c
include/linux/buffer_head.h