summaryrefslogtreecommitdiffstats
path: root/mm/fadvise.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2019-08-29 18:04:11 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2019-08-31 07:43:58 +0200
commit692fe62433d4ca47605b39f7c416efd6679ba694 (patch)
tree33d124b7b007e911141c7a3d527a4dc670eb7b4c /mm/fadvise.c
parentxfs: allocate xattr buffer on demand (diff)
downloadlinux-692fe62433d4ca47605b39f7c416efd6679ba694.tar.xz
linux-692fe62433d4ca47605b39f7c416efd6679ba694.zip
mm: Handle MADV_WILLNEED through vfs_fadvise()
Currently handling of MADV_WILLNEED hint calls directly into readahead code. Handle it by calling vfs_fadvise() instead so that filesystem can use its ->fadvise() callback to acquire necessary locks or otherwise prepare for the request. Suggested-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Boaz Harrosh <boazh@netapp.com> CC: stable@vger.kernel.org Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'mm/fadvise.c')
0 files changed, 0 insertions, 0 deletions