linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] virtio_fs: Modify format for virtio_fs_direct_access
@ 2022-06-22 21:17 Deming Wang
  2022-06-23 12:48 ` Vivek Goyal
  0 siblings, 1 reply; 2+ messages in thread
From: Deming Wang @ 2022-06-22 21:17 UTC (permalink / raw)
  To: vgoyal, stefanha, miklos
  Cc: virtualization, linux-fsdevel, linux-kernel, Deming Wang

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(-)

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] virtio_fs: Modify format for virtio_fs_direct_access
  2022-06-22 21:17 [PATCH] virtio_fs: Modify format for virtio_fs_direct_access Deming Wang
@ 2022-06-23 12:48 ` Vivek Goyal
  0 siblings, 0 replies; 2+ messages in thread
From: Vivek Goyal @ 2022-06-23 12:48 UTC (permalink / raw)
  To: Deming Wang; +Cc: stefanha, miklos, virtualization, linux-fsdevel, linux-kernel

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
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-23 12:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-22 21:17 [PATCH] virtio_fs: Modify format for virtio_fs_direct_access Deming Wang
2022-06-23 12:48 ` Vivek Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).