summaryrefslogtreecommitdiff
path: root/iosched.c
AgeCommit message (Collapse)AuthorFilesLines
2015-04-22iosched: Print error cause if setting io prio failedVadim Kochan1-1/+1
Add error cause message when ioprio_setpid fails. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2013-06-03iosched: break out io scheduling functions from xutilsDaniel Borkmann1-0/+76
Break this stuff out, for better maintainability and readability. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
git/commit/fs/dax.c?h=nds-private-remove&id=c6dcf52c23d2d3fb5235cec42d7dd3f786b87d55'>c6dcf52c23d2d3fb5235cec42d7dd3f786b87d55 (patch) tree7e63a6c0225a769e679b194f54b5723e4cfba385 /fs/dax.c parente568df6b84ff05a22467503afc11bee7a6ba0700 (diff)
mm: Invalidate DAX radix tree entries only if appropriate
Currently invalidate_inode_pages2_range() and invalidate_mapping_pages() just delete all exceptional radix tree entries they find. For DAX this is not desirable as we track cache dirtiness in these entries and when they are evicted, we may not flush caches although it is necessary. This can for example manifest when we write to the same block both via mmap and via write(2) (to different offsets) and fsync(2) then does not properly flush CPU caches when modification via write(2) was the last one. Create appropriate DAX functions to handle invalidation of DAX entries for invalidate_inode_pages2_range() and invalidate_mapping_pages() and wire them up into the corresponding mm functions. Acked-by: Johannes Weiner <hannes@cmpxchg.org> Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'fs/dax.c')