Skip to content
Commit 692fe624 authored by Jan Kara's avatar Jan Kara Committed by Darrick J. Wong
Browse files

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: default avatarAmir Goldstein <amir73il@gmail.com>
Reviewed-by: default avatarBoaz Harrosh <boazh@netapp.com>
CC: stable@vger.kernel.org
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent ddbca70c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment