diff options
author | Jan Kara <jack@suse.cz> | 2019-08-29 18:04:11 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-08-31 07:43:58 +0200 |
commit | 692fe62433d4ca47605b39f7c416efd6679ba694 (patch) | |
tree | 33d124b7b007e911141c7a3d527a4dc670eb7b4c /mm/fadvise.c | |
parent | xfs: allocate xattr buffer on demand (diff) | |
download | linux-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