aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dax.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-09-14 16:43:16 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2017-09-14 16:43:16 -0400
commitdff4d1f6fe85627b7ce8e4c5291d8621a1995605 (patch)
treea5c52d6723d701b63bbd0bbc261b69bd5a56ceb3 /fs/dax.c
parent503f04530fec97f93673ae9048b5312cc4455cfe (diff)
parentc3ca015fab6df124c933b91902f3f2a3473f9da5 (diff)
Merge tag 'for-4.14/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
Pull device mapper updates from Mike Snitzer: - Some request-based DM core and DM multipath fixes and cleanups - Constify a few variables in DM core and DM integrity - Add bufio optimization and checksum failure accounting to DM integrity - Fix DM integrity to avoid checking integrity of failed reads - Fix DM integrity to use init_completion - A couple DM log-writes target fixes - Simplify DAX flushing by eliminating the unnecessary flush abstraction that was stood up for DM's use. * tag 'for-4.14/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm: dax: remove the pmem_dax_ops->flush abstraction dm integrity: use init_completion instead of COMPLETION_INITIALIZER_ONSTACK dm integrity: make blk_integrity_profile structure const dm integrity: do not check integrity for failed read operations dm log writes: fix >512b sectorsize support dm log writes: don't use all the cpu while waiting to log blocks dm ioctl: constify ioctl lookup table dm: constify argument arrays dm integrity: count and display checksum failures dm integrity: optimize writing dm-bufio buffers that are partially changed dm rq: do not update rq partially in each ending bio dm rq: make dm-sq requeuing behavior consistent with dm-mq behavior dm mpath: complain about unsupported __multipath_map_bio() return values dm mpath: avoid that building with W=1 causes gcc 7 to complain about fall-through
Diffstat (limited to 'fs/dax.c')
-rw-r--r--fs/dax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dax.c b/fs/dax.c
index 6afcacb3a87b..f001d8c72a06 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -734,7 +734,7 @@ static int dax_writeback_one(struct block_device *bdev,
734 } 734 }
735 735
736 dax_mapping_entry_mkclean(mapping, index, pfn_t_to_pfn(pfn)); 736 dax_mapping_entry_mkclean(mapping, index, pfn_t_to_pfn(pfn));
737 dax_flush(dax_dev, pgoff, kaddr, size); 737 dax_flush(dax_dev, kaddr, size);
738 /* 738 /*
739 * After we have flushed the cache, we can clear the dirty tag. There 739 * After we have flushed the cache, we can clear the dirty tag. There
740 * cannot be new dirty data in the pfn after the flush has completed as 740 * cannot be new dirty data in the pfn after the flush has completed as
@@ -929,7 +929,7 @@ int __dax_zero_page_range(struct block_device *bdev,
929 return rc; 929 return rc;
930 } 930 }
931 memset(kaddr + offset, 0, size); 931 memset(kaddr + offset, 0, size);
932 dax_flush(dax_dev, pgoff, kaddr + offset, size); 932 dax_flush(dax_dev, kaddr + offset, size);
933 dax_read_unlock(id); 933 dax_read_unlock(id);
934 } 934 }
935 return 0; 935 return 0;