diff options
author | Jan Kara <jack@suse.cz> | 2019-08-29 09:04:11 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-08-30 22:43:58 -0700 |
commit | 692fe62433d4ca47605b39f7c416efd6679ba694 (patch) | |
tree | 33d124b7b007e911141c7a3d527a4dc670eb7b4c /tools | |
parent | ddbca70cc45c0ac97ff6d9529e45f10b8ae73ad4 (diff) |
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 'tools')
0 files changed, 0 insertions, 0 deletions