[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush
From: |
Pankaj Gupta |
Subject: |
Re: [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush |
Date: |
Thu, 4 Apr 2019 11:50:02 -0400 (EDT) |
> > >
> > > So I would put the helper in include/linux/dax.h and have it like:
> > >
> > > bool daxdev_mapping_supported(struct vm_area_struct *vma,
>
> Should this be static inline if you're putting it in the header file?
yes. Thanks.
>
> A comment ought to be added to describe what this predicate function
> does.
Sure, will add a comment describing the function.
>
> > > struct dax_device *dax_dev)
> > > {
> > > if (!(vma->vm_flags & VM_SYNC))
> > > return true;
> > > if (!IS_DAX(file_inode(vma->vm_file)))
> > > return false;
> > > return dax_synchronous(dax_dev);
> > > }
> >
> > Sure. This is much better. I was also not sure what to name the helper
> > function.
> > I will go ahead with this unless 'Dave' & 'Darrick' have anything to add.
>
> Jan's approach (modulo that one comment) looks good to me.
Sure. Thank you.
Best regards,
Pankaj
>
> --D
>
- [Qemu-devel] [PATCH v4 0/5] virtio pmem driver, Pankaj Gupta, 2019/04/03
- [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush, Pankaj Gupta, 2019/04/03
- Re: [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush, Dave Chinner, 2019/04/03
- Re: [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush, Darrick J. Wong, 2019/04/03
- Re: [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush, Pankaj Gupta, 2019/04/04
- Re: [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush, Pankaj Gupta, 2019/04/04
- Re: [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush, Jan Kara, 2019/04/04
- Re: [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush, Pankaj Gupta, 2019/04/04
- Re: [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush, Darrick J. Wong, 2019/04/04
- Re: [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush,
Pankaj Gupta <=
- Re: [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush, Pankaj Gupta, 2019/04/04
- Re: [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush, Adam Borowski, 2019/04/04
- Re: [Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush, Pankaj Gupta, 2019/04/04
[Qemu-devel] [PATCH v4 1/5] ibnvdimm: nd_region flush callback support, Pankaj Gupta, 2019/04/03
[Qemu-devel] [PATCH v4 2/5] virtio-pmem: Add virtio pmem driver, Pankaj Gupta, 2019/04/03
[Qemu-devel] [PATCH v4 4/5] ext4: disable map_sync for async flush, Pankaj Gupta, 2019/04/03