summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeming Wang <wangdeming@inspur.com>2022-06-22 17:17:58 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2022-07-26 10:38:58 +0200
commit73fb2c8b61783e2e8a87f91d141bf72a12404566 (patch)
tree15af30f1117221821bdd8385034c41a2632711ab
parent1e5b9e048cda4d284827d22546a4cb0904689c5d (diff)
virtio_fs: Modify format for virtio_fs_direct_access
We should isolate operators with spaces. Signed-off-by: Deming Wang <wangdeming@inspur.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
-rw-r--r--fs/fuse/virtio_fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c
index 0991199d19c1..4d8d4f16c727 100644
--- a/fs/fuse/virtio_fs.c
+++ b/fs/fuse/virtio_fs.c
@@ -756,7 +756,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;