]> Git Repo - linux.git/commit
dax: move writeback calls into the filesystems
authorRoss Zwisler <[email protected]>
Fri, 26 Feb 2016 23:19:55 +0000 (15:19 -0800)
committerLinus Torvalds <[email protected]>
Sat, 27 Feb 2016 18:28:52 +0000 (10:28 -0800)
commit7f6d5b529b7dfe2fca30cbf4bc81e16575090025
tree3dce0ed231dadcd470db83c1762a701004c1616b
parent20a90f58997245749c2bdfaea9e51f785ec90d0b
dax: move writeback calls into the filesystems

Previously calls to dax_writeback_mapping_range() for all DAX filesystems
(ext2, ext4 & xfs) were centralized in filemap_write_and_wait_range().

dax_writeback_mapping_range() needs a struct block_device, and it used
to get that from inode->i_sb->s_bdev.  This is correct for normal inodes
mounted on ext2, ext4 and XFS filesystems, but is incorrect for DAX raw
block devices and for XFS real-time files.

Instead, call dax_writeback_mapping_range() directly from the filesystem
->writepages function so that it can supply us with a valid block
device.  This also fixes DAX code to properly flush caches in response
to sync(2).

Signed-off-by: Ross Zwisler <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Theodore Ts'o <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/block_dev.c
fs/dax.c
fs/ext2/inode.c
fs/ext4/inode.c
fs/xfs/xfs_aops.c
include/linux/dax.h
mm/filemap.c
This page took 0.045825 seconds and 4 git commands to generate.