Displaying 20 results from an estimated 36 matches for "xfs_find_daxdev_for_inode".
2019 Apr 03
4
[PATCH v4 5/5] xfs: disable map_sync for async flush
...IS_DAX(file_inode(filp)) && (vma->vm_flags & VM_SYNC))
> return -EOPNOTSUPP;
>
> + /* We don't support synchronous mappings with DAX files if
> + * dax_device is not synchronous.
> + */
> + if (IS_DAX(file_inode(filp)) && !dax_synchronous(
> + xfs_find_daxdev_for_inode(file_inode(filp))) &&
> + (vma->vm_flags & VM_SYNC))
> + return -EOPNOTSUPP;
> +
> file_accessed(filp);
> vma->vm_ops = &xfs_file_vm_ops;
> if (IS_DAX(file_inode(filp)))
All this ad hoc IS_DAX conditional logic is getting pretty nasty.
xfs_file_m...
2019 Apr 03
4
[PATCH v4 5/5] xfs: disable map_sync for async flush
...IS_DAX(file_inode(filp)) && (vma->vm_flags & VM_SYNC))
> return -EOPNOTSUPP;
>
> + /* We don't support synchronous mappings with DAX files if
> + * dax_device is not synchronous.
> + */
> + if (IS_DAX(file_inode(filp)) && !dax_synchronous(
> + xfs_find_daxdev_for_inode(file_inode(filp))) &&
> + (vma->vm_flags & VM_SYNC))
> + return -EOPNOTSUPP;
> +
> file_accessed(filp);
> vma->vm_ops = &xfs_file_vm_ops;
> if (IS_DAX(file_inode(filp)))
All this ad hoc IS_DAX conditional logic is getting pretty nasty.
xfs_file_m...
2019 Apr 04
2
[PATCH v4 5/5] xfs: disable map_sync for async flush
...OTSUPP;
> > > >
> > > > + /* We don't support synchronous mappings with DAX files if
> > > > + * dax_device is not synchronous.
> > > > + */
> > > > + if (IS_DAX(file_inode(filp)) && !dax_synchronous(
> > > > + xfs_find_daxdev_for_inode(file_inode(filp))) &&
> > > > + (vma->vm_flags & VM_SYNC))
> > > > + return -EOPNOTSUPP;
> > > > +
> > > > file_accessed(filp);
> > > > vma->vm_ops = &xfs_file_vm_ops;
> > > > if (IS_DAX(file_in...
2019 Apr 04
2
[PATCH v4 5/5] xfs: disable map_sync for async flush
...OTSUPP;
> > > >
> > > > + /* We don't support synchronous mappings with DAX files if
> > > > + * dax_device is not synchronous.
> > > > + */
> > > > + if (IS_DAX(file_inode(filp)) && !dax_synchronous(
> > > > + xfs_find_daxdev_for_inode(file_inode(filp))) &&
> > > > + (vma->vm_flags & VM_SYNC))
> > > > + return -EOPNOTSUPP;
> > > > +
> > > > file_accessed(filp);
> > > > vma->vm_ops = &xfs_file_vm_ops;
> > > > if (IS_DAX(file_in...
2019 Apr 23
3
[PATCH v6 6/6] xfs: disable map_sync for async flush
...le.c
> @@ -1196,11 +1196,13 @@ xfs_file_mmap(
> struct file *filp,
> struct vm_area_struct *vma)
> {
> - /*
> - * We don't support synchronous mappings for non-DAX files. At least
> - * until someone comes with a sensible use case.
> + struct dax_device *dax_dev = xfs_find_daxdev_for_inode
> + (file_inode(filp));
> +
> + /* We don't support synchronous mappings for non-DAX files and
> + * for DAX files if underneath dax_device is not synchronous.
> */
/*
* This is the correct multi-line comment format. Please
* update the patch to maintain the existi...
2019 Apr 23
3
[PATCH v6 6/6] xfs: disable map_sync for async flush
...le.c
> @@ -1196,11 +1196,13 @@ xfs_file_mmap(
> struct file *filp,
> struct vm_area_struct *vma)
> {
> - /*
> - * We don't support synchronous mappings for non-DAX files. At least
> - * until someone comes with a sensible use case.
> + struct dax_device *dax_dev = xfs_find_daxdev_for_inode
> + (file_inode(filp));
> +
> + /* We don't support synchronous mappings for non-DAX files and
> + * for DAX files if underneath dax_device is not synchronous.
> */
/*
* This is the correct multi-line comment format. Please
* update the patch to maintain the existi...
2019 Apr 03
1
[PATCH v4 5/5] xfs: disable map_sync for async flush
...(vma->vm_flags & VM_SYNC))
> > return -EOPNOTSUPP;
> >
> > + /* We don't support synchronous mappings with DAX files if
> > + * dax_device is not synchronous.
> > + */
> > + if (IS_DAX(file_inode(filp)) && !dax_synchronous(
> > + xfs_find_daxdev_for_inode(file_inode(filp))) &&
> > + (vma->vm_flags & VM_SYNC))
> > + return -EOPNOTSUPP;
> > +
> > file_accessed(filp);
> > vma->vm_ops = &xfs_file_vm_ops;
> > if (IS_DAX(file_inode(filp)))
>
> All this ad hoc IS_DAX conditional lo...
2019 Apr 04
2
[Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush
...> > + /* We don't support synchronous mappings with DAX files if
> > > > > > + * dax_device is not synchronous.
> > > > > > + */
> > > > > > + if (IS_DAX(file_inode(filp)) && !dax_synchronous(
> > > > > > + xfs_find_daxdev_for_inode(file_inode(filp))) &&
> > > > > > + (vma->vm_flags & VM_SYNC))
> > > > > > + return -EOPNOTSUPP;
> > > > > > +
> > > > > > file_accessed(filp);
> > > > > > vma->vm_ops = &xfs_fil...
2019 Apr 04
2
[Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush
...> > + /* We don't support synchronous mappings with DAX files if
> > > > > > + * dax_device is not synchronous.
> > > > > > + */
> > > > > > + if (IS_DAX(file_inode(filp)) && !dax_synchronous(
> > > > > > + xfs_find_daxdev_for_inode(file_inode(filp))) &&
> > > > > > + (vma->vm_flags & VM_SYNC))
> > > > > > + return -EOPNOTSUPP;
> > > > > > +
> > > > > > file_accessed(filp);
> > > > > > vma->vm_ops = &xfs_fil...
2019 Apr 04
0
[PATCH v4 5/5] xfs: disable map_sync for async flush
...t;
> > > > > + /* We don't support synchronous mappings with DAX files if
> > > > > + * dax_device is not synchronous.
> > > > > + */
> > > > > + if (IS_DAX(file_inode(filp)) && !dax_synchronous(
> > > > > + xfs_find_daxdev_for_inode(file_inode(filp))) &&
> > > > > + (vma->vm_flags & VM_SYNC))
> > > > > + return -EOPNOTSUPP;
> > > > > +
> > > > > file_accessed(filp);
> > > > > vma->vm_ops = &xfs_file_vm_ops;
> > >...
2019 May 07
2
[PATCH v7 6/6] xfs: disable map_sync for async flush
...x a7ceae90110e..f17652cca5ff 100644
> --- a/fs/xfs/xfs_file.c
> +++ b/fs/xfs/xfs_file.c
> @@ -1203,11 +1203,14 @@ xfs_file_mmap(
> struct file *filp,
> struct vm_area_struct *vma)
> {
> + struct dax_device *dax_dev;
> +
> + dax_dev = xfs_find_daxdev_for_inode(file_inode(filp));
> /*
> - * We don't support synchronous mappings for non-DAX files. At least
> - * until someone comes with a sensible use case.
> + * We don't support synchronous mappings for non-DAX files and
> + * for DAX files if und...
2019 May 07
2
[PATCH v7 6/6] xfs: disable map_sync for async flush
...x a7ceae90110e..f17652cca5ff 100644
> --- a/fs/xfs/xfs_file.c
> +++ b/fs/xfs/xfs_file.c
> @@ -1203,11 +1203,14 @@ xfs_file_mmap(
> struct file *filp,
> struct vm_area_struct *vma)
> {
> + struct dax_device *dax_dev;
> +
> + dax_dev = xfs_find_daxdev_for_inode(file_inode(filp));
> /*
> - * We don't support synchronous mappings for non-DAX files. At least
> - * until someone comes with a sensible use case.
> + * We don't support synchronous mappings for non-DAX files and
> + * for DAX files if und...
2019 Apr 04
0
[Qemu-devel] [PATCH v4 5/5] xfs: disable map_sync for async flush
...n't support synchronous mappings with DAX files if
> > > > > > > + * dax_device is not synchronous.
> > > > > > > + */
> > > > > > > + if (IS_DAX(file_inode(filp)) && !dax_synchronous(
> > > > > > > + xfs_find_daxdev_for_inode(file_inode(filp))) &&
> > > > > > > + (vma->vm_flags & VM_SYNC))
> > > > > > > + return -EOPNOTSUPP;
> > > > > > > +
> > > > > > > file_accessed(filp);
> > > > > > > vma-...
2019 Apr 04
0
[PATCH v4 5/5] xfs: disable map_sync for async flush
...> > > return -EOPNOTSUPP;
> > >
> > > + /* We don't support synchronous mappings with DAX files if
> > > + * dax_device is not synchronous.
> > > + */
> > > + if (IS_DAX(file_inode(filp)) && !dax_synchronous(
> > > + xfs_find_daxdev_for_inode(file_inode(filp))) &&
> > > + (vma->vm_flags & VM_SYNC))
> > > + return -EOPNOTSUPP;
> > > +
> > > file_accessed(filp);
> > > vma->vm_ops = &xfs_file_vm_ops;
> > > if (IS_DAX(file_inode(filp)))
> >
> &g...
2019 Apr 04
0
[PATCH v4 5/5] xfs: disable map_sync for async flush
...(vma->vm_flags & VM_SYNC))
> > return -EOPNOTSUPP;
> >
> > + /* We don't support synchronous mappings with DAX files if
> > + * dax_device is not synchronous.
> > + */
> > + if (IS_DAX(file_inode(filp)) && !dax_synchronous(
> > + xfs_find_daxdev_for_inode(file_inode(filp))) &&
> > + (vma->vm_flags & VM_SYNC))
> > + return -EOPNOTSUPP;
> > +
> > file_accessed(filp);
> > vma->vm_ops = &xfs_file_vm_ops;
> > if (IS_DAX(file_inode(filp)))
>
> All this ad hoc IS_DAX conditional lo...
2019 Apr 23
0
[PATCH v6 6/6] xfs: disable map_sync for async flush
...fs_file_mmap(
> > struct file *filp,
> > struct vm_area_struct *vma)
> > {
> > - /*
> > - * We don't support synchronous mappings for non-DAX files. At least
> > - * until someone comes with a sensible use case.
> > + struct dax_device *dax_dev = xfs_find_daxdev_for_inode
> > + (file_inode(filp));
tab separation here ^^^ ^^^^ and cut
down the indent
while you're at
it, please:
struct dax_device *dax_dev;
dax_dev = xf...
2019 Apr 04
1
[PATCH v4 5/5] xfs: disable map_sync for async flush
...ic is getting pretty nasty.
> >
> > xfs_file_mmap(
> > ....
> > {
> > struct inode *inode = file_inode(filp);
> >
> > if (vma->vm_flags & VM_SYNC) {
> > if (!IS_DAX(inode))
> > return -EOPNOTSUPP;
> > if (!dax_synchronous(xfs_find_daxdev_for_inode(inode))
> > return -EOPNOTSUPP;
> > }
> >
> > file_accessed(filp);
> > vma->vm_ops = &xfs_file_vm_ops;
> > if (IS_DAX(inode))
> > vma->vm_flags |= VM_HUGEPAGE;
> > return 0;
> > }
>
> Sure, this is better.
> >...
2019 Apr 04
1
[PATCH v4 5/5] xfs: disable map_sync for async flush
...ic is getting pretty nasty.
> >
> > xfs_file_mmap(
> > ....
> > {
> > struct inode *inode = file_inode(filp);
> >
> > if (vma->vm_flags & VM_SYNC) {
> > if (!IS_DAX(inode))
> > return -EOPNOTSUPP;
> > if (!dax_synchronous(xfs_find_daxdev_for_inode(inode))
> > return -EOPNOTSUPP;
> > }
> >
> > file_accessed(filp);
> > vma->vm_ops = &xfs_file_vm_ops;
> > if (IS_DAX(inode))
> > vma->vm_flags |= VM_HUGEPAGE;
> > return 0;
> > }
>
> Sure, this is better.
> >...
2019 Apr 03
0
[PATCH v4 5/5] xfs: disable map_sync for async flush
...+1203,14 @@ xfs_file_mmap(
if (!IS_DAX(file_inode(filp)) && (vma->vm_flags & VM_SYNC))
return -EOPNOTSUPP;
+ /* We don't support synchronous mappings with DAX files if
+ * dax_device is not synchronous.
+ */
+ if (IS_DAX(file_inode(filp)) && !dax_synchronous(
+ xfs_find_daxdev_for_inode(file_inode(filp))) &&
+ (vma->vm_flags & VM_SYNC))
+ return -EOPNOTSUPP;
+
file_accessed(filp);
vma->vm_ops = &xfs_file_vm_ops;
if (IS_DAX(file_inode(filp)))
--
2.20.1
2019 Apr 04
0
[PATCH v4 5/5] xfs: disable map_sync for async flush
...gt; > xfs_file_mmap(
> > > ....
> > > {
> > > struct inode *inode = file_inode(filp);
> > >
> > > if (vma->vm_flags & VM_SYNC) {
> > > if (!IS_DAX(inode))
> > > return -EOPNOTSUPP;
> > > if (!dax_synchronous(xfs_find_daxdev_for_inode(inode))
> > > return -EOPNOTSUPP;
> > > }
> > >
> > > file_accessed(filp);
> > > vma->vm_ops = &xfs_file_vm_ops;
> > > if (IS_DAX(inode))
> > > vma->vm_flags |= VM_HUGEPAGE;
> > > return 0;
> > > }...