X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=drivers%2Fnvdimm%2Fpmem.c;h=88c1282587603122995e178e1e77d481b3e30dfa;hb=b8da8de4f8b8e49d4252a6b17e154e9e46ff194c;hp=f7099adaabc0b643e703cf8b160b5c5debda2bde;hpb=89cbec71fead552fdd1fa38c57186669dfbba734;p=mirror_ubuntu-artful-kernel.git diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c index f7099adaabc0..88c128258760 100644 --- a/drivers/nvdimm/pmem.c +++ b/drivers/nvdimm/pmem.c @@ -243,16 +243,9 @@ static size_t pmem_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff, return copy_from_iter_flushcache(addr, bytes, i); } -static void pmem_dax_flush(struct dax_device *dax_dev, pgoff_t pgoff, - void *addr, size_t size) -{ - arch_wb_cache_pmem(addr, size); -} - static const struct dax_operations pmem_dax_ops = { .direct_access = pmem_dax_direct_access, .copy_from_iter = pmem_copy_from_iter, - .flush = pmem_dax_flush, }; static const struct attribute_group *pmem_attribute_groups[] = {