Message ID | 20220622211758.4728-1-wangdeming@inspur.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | virtio_fs: Modify format for virtio_fs_direct_access | expand |
On Wed, Jun 22, 2022 at 05:17:58PM -0400, Deming Wang wrote: > We should isolate operators with spaces. > > Signed-off-by: Deming Wang <wangdeming@inspur.com> Looks good to me. Reviewed-by: Vivek Goyal <vgoyal@redhat.com> Vivek > --- > fs/fuse/virtio_fs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c > index 8db53fa67359..e962c29967eb 100644 > --- a/fs/fuse/virtio_fs.c > +++ b/fs/fuse/virtio_fs.c > @@ -757,7 +757,7 @@ static long virtio_fs_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, > { > struct virtio_fs *fs = dax_get_private(dax_dev); > phys_addr_t offset = PFN_PHYS(pgoff); > - size_t max_nr_pages = fs->window_len/PAGE_SIZE - pgoff; > + size_t max_nr_pages = fs->window_len / PAGE_SIZE - pgoff; > > if (kaddr) > *kaddr = fs->window_kaddr + offset; > -- > 2.27.0 >
diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c index 8db53fa67359..e962c29967eb 100644 --- a/fs/fuse/virtio_fs.c +++ b/fs/fuse/virtio_fs.c @@ -757,7 +757,7 @@ static long virtio_fs_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, { struct virtio_fs *fs = dax_get_private(dax_dev); phys_addr_t offset = PFN_PHYS(pgoff); - size_t max_nr_pages = fs->window_len/PAGE_SIZE - pgoff; + size_t max_nr_pages = fs->window_len / PAGE_SIZE - pgoff; if (kaddr) *kaddr = fs->window_kaddr + offset;
We should isolate operators with spaces. Signed-off-by: Deming Wang <wangdeming@inspur.com> --- fs/fuse/virtio_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)