aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorAmir Goldstein <[email protected]>2018-08-29 08:41:29 +0300
committerMiklos Szeredi <[email protected]>2018-08-30 20:01:32 +0200
commit3d8f7615319b2bca87a4815e13787439e3339a93 (patch)
treef7f5c2be4f572892747e47c9fc1001e86f74ca61 /tools/perf/scripts/python/call-graph-from-sql.py
parent45cd0faae3715e305bc46e23b34c5ed4d185ceb8 (diff)
vfs: implement readahead(2) using POSIX_FADV_WILLNEED
The implementation of readahead(2) syscall is identical to that of fadvise64(POSIX_FADV_WILLNEED) with a few exceptions: 1. readahead(2) returns -EINVAL for !mapping->a_ops and fadvise64() ignores the request and returns 0. 2. fadvise64() checks for integer overflow corner case 3. fadvise64() calls the optional filesystem fadvise() file operation Unite the two implementations by calling vfs_fadvise() from readahead(2) syscall. Check the !mapping->a_ops in readahead(2) syscall to preserve documented syscall ABI behaviour. Suggested-by: Miklos Szeredi <[email protected]> Fixes: d1d04ef8572b ("ovl: stack file ops") Signed-off-by: Amir Goldstein <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions