diff options
author | Dan Williams <dan.j.williams@intel.com> | 2018-03-11 12:03:08 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-03-30 11:34:55 -0700 |
commit | 15aa8a01189b7399d085cceae6775cc6899b1909 (patch) | |
tree | b6dc5b7109b7f322f2e6de8c8a2bba4a7747f369 /fs/block_dev.c | |
parent | f44c77630d26ca2c2a60b20c47dd9ce07c4361b3 (diff) | |
download | linux-15aa8a01189b7399d085cceae6775cc6899b1909.tar.gz linux-15aa8a01189b7399d085cceae6775cc6899b1909.tar.bz2 linux-15aa8a01189b7399d085cceae6775cc6899b1909.zip |
block, dax: remove dead code in blkdev_writepages()
Block device inodes never have S_DAX set, so kill the check for DAX and
diversion to dax_writeback_mapping_range().
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Cc: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index fe09ef9c21f3..846ee2d31781 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -1946,11 +1946,6 @@ static int blkdev_releasepage(struct page *page, gfp_t wait) static int blkdev_writepages(struct address_space *mapping, struct writeback_control *wbc) { - if (dax_mapping(mapping)) { - struct block_device *bdev = I_BDEV(mapping->host); - - return dax_writeback_mapping_range(mapping, bdev, wbc); - } return generic_writepages(mapping, wbc); } |