Displaying 7 results from an estimated 7 matches for "is_synchron".
2019 Apr 04
2
[PATCH v4 5/5] xfs: disable map_sync for async flush
...ings for non-DAX files and
+ * for DAX files if underneath dax_device is not synchronous.
*/
- if (!IS_DAX(file_inode(filp)) && (vma->vm_flags & VM_SYNC))
- return -EOPNOTSUPP;
+ if (vma->vm_flags & VM_SYNC) {
+ int err = is_synchronous(filp, dax_dev);
+ if (err)
+ return err;
+ }
file_accessed(filp);
vma->vm_ops = &xfs_file_vm_ops;
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 8b42df09b04c..add017de3dd7 100644
--- a/include/linux/fs.h
+++ b/include...
2019 Apr 04
2
[PATCH v4 5/5] xfs: disable map_sync for async flush
...ings for non-DAX files and
+ * for DAX files if underneath dax_device is not synchronous.
*/
- if (!IS_DAX(file_inode(filp)) && (vma->vm_flags & VM_SYNC))
- return -EOPNOTSUPP;
+ if (vma->vm_flags & VM_SYNC) {
+ int err = is_synchronous(filp, dax_dev);
+ if (err)
+ return err;
+ }
file_accessed(filp);
vma->vm_ops = &xfs_file_vm_ops;
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 8b42df09b04c..add017de3dd7 100644
--- a/include/linux/fs.h
+++ b/include...
2019 Apr 04
2
[Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush
...s if underneath dax_device is not synchronous.
> > */
> > - if (!IS_DAX(file_inode(filp)) && (vma->vm_flags & VM_SYNC))
> > - return -EOPNOTSUPP;
> > + if (vma->vm_flags & VM_SYNC) {
> > + int err = is_synchronous(filp, dax_dev);
> > + if (err)
> > + return err;
> > + }
> >
> > file_accessed(filp);
> > vma->vm_ops = &xfs_file_vm_ops;
> > diff --git a/include/linux/fs.h b/include/linux/fs.h
> >...
2019 Apr 04
2
[Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush
...s if underneath dax_device is not synchronous.
> > */
> > - if (!IS_DAX(file_inode(filp)) && (vma->vm_flags & VM_SYNC))
> > - return -EOPNOTSUPP;
> > + if (vma->vm_flags & VM_SYNC) {
> > + int err = is_synchronous(filp, dax_dev);
> > + if (err)
> > + return err;
> > + }
> >
> > file_accessed(filp);
> > vma->vm_ops = &xfs_file_vm_ops;
> > diff --git a/include/linux/fs.h b/include/linux/fs.h
> >...
2019 Apr 04
0
[PATCH v4 5/5] xfs: disable map_sync for async flush
...; + * for DAX files if underneath dax_device is not synchronous.
> */
> - if (!IS_DAX(file_inode(filp)) && (vma->vm_flags & VM_SYNC))
> - return -EOPNOTSUPP;
> + if (vma->vm_flags & VM_SYNC) {
> + int err = is_synchronous(filp, dax_dev);
> + if (err)
> + return err;
> + }
>
> file_accessed(filp);
> vma->vm_ops = &xfs_file_vm_ops;
> diff --git a/include/linux/fs.h b/include/linux/fs.h
> index 8b42df09b04c..add017de3dd7 10064...
2019 Apr 04
0
[Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush
...e is not synchronous.
> > > */
> > > - if (!IS_DAX(file_inode(filp)) && (vma->vm_flags & VM_SYNC))
> > > - return -EOPNOTSUPP;
> > > + if (vma->vm_flags & VM_SYNC) {
> > > + int err = is_synchronous(filp, dax_dev);
> > > + if (err)
> > > + return err;
> > > + }
> > >
> > > file_accessed(filp);
> > > vma->vm_ops = &xfs_file_vm_ops;
> > > diff --git a/include/linux...
2019 Apr 03
1
[PATCH v4 5/5] xfs: disable map_sync for async flush
On Thu, Apr 04, 2019 at 09:09:12AM +1100, Dave Chinner wrote:
> On Wed, Apr 03, 2019 at 04:10:18PM +0530, Pankaj Gupta wrote:
> > Virtio pmem provides asynchronous host page cache flush
> > mechanism. we don't support 'MAP_SYNC' with virtio pmem
> > and xfs.
> >
> > Signed-off-by: Pankaj Gupta <pagupta at redhat.com>
> > ---
> >