diff options
author | Jeff Moyer <[email protected]> | 2018-04-05 16:25:01 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-04-05 21:36:27 -0700 |
commit | 3172485f4f8032649c144e4aafa550e1e6179332 (patch) | |
tree | 2efd535f6a05f132f897b54cfcade87481e16136 /include/linux/fpga/fpga-mgr.h | |
parent | e8b098fc5747a7c871f113c9eb65453cc2d86e6f (diff) |
block_invalidatepage(): only release page if the full page was invalidated
Prior to commit d47992f86b30 ("mm: change invalidatepage prototype to
accept length"), an offset of 0 meant that the full page was being
invalidated. After that commit, we need to instead check the length.
Jan said:
:
: The only possible issue is that try_to_release_page() was called more
: often than necessary. Otherwise the issue is harmless but still it's good
: to have this fixed.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: d47992f86b307 ("mm: change invalidatepage prototype to accept length")
Signed-off-by: Jeff Moyer <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Cc: Lukas Czerner <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions