kernel_optimize_test/fs/ntfs
Michal Hocko 6afdb859b7 mm: do not ignore mapping_gfp_mask in page cache allocation paths
page_cache_read, do_generic_file_read, __generic_file_splice_read and
__ntfs_grab_cache_pages currently ignore mapping_gfp_mask when calling
add_to_page_cache_lru which might cause recursion into fs down in the
direct reclaim path if the mapping really relies on GFP_NOFS semantic.

This doesn't seem to be the case now because page_cache_read (page fault
path) doesn't seem to suffer from the reclaim recursion issues and
do_generic_file_read and __generic_file_splice_read also shouldn't be
called under fs locks which would deadlock in the reclaim path.  Anyway it
is better to obey mapping gfp mask and prevent from later breakage.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Michal Hocko <mhocko@suse.cz>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Neil Brown <neilb@suse.de>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Anton Altaparmakov <anton@tuxera.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-06-24 17:49:44 -07:00
..
aops.c NTFS: Add bmap address space operation needed for FIBMAP ioctl. 2014-10-16 12:50:52 +01:00
aops.h
attrib.c mm: non-atomically mark page accessed during page cache allocation where possible 2014-06-04 16:54:10 -07:00
attrib.h
bitmap.c
bitmap.h
collate.c
collate.h
compress.c ntfs: remove NULL value assignments 2014-06-04 16:53:52 -07:00
debug.c ntfs: remove bogus space 2014-10-09 22:25:46 -04:00
debug.h
dir.c
dir.h
endian.h
file.c mm: do not ignore mapping_gfp_mask in page cache allocation paths 2015-06-24 17:49:44 -07:00
index.c
index.h
inode.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00
inode.h
Kconfig
layout.h
lcnalloc.c
lcnalloc.h
logfile.c
logfile.h
Makefile NTFS: Version 2.1.32 - Update file write from aio_write to write_iter. 2015-04-11 22:24:33 -04:00
malloc.h NTFS: use kvfree() in ntfs_free() 2015-06-24 17:49:38 -07:00
mft.c
mft.h
mst.c
namei.c get rid of assorted nameidata-related debris 2015-05-15 01:10:37 -04:00
ntfs.h NTFS: Split ntfs_aops into ntfs_normal_aops and ntfs_compressed_aops 2014-10-16 12:28:03 +01:00
quota.c
quota.h
runlist.c
runlist.h
super.c ntfs: use find_get_page_flags() to mark page accessed as it is no longer marked later on 2014-10-09 22:25:46 -04:00
sysctl.c ntfs: convert use of typedef ctl_table to struct ctl_table 2014-06-06 16:08:16 -07:00
sysctl.h
time.h
types.h
unistr.c
upcase.c
usnjrnl.c
usnjrnl.h
volume.h