* [PATCH 2/2] mm: filemap: fixed a "foo * bar" and added tab coding style issue
@ 2017-12-17 8:27 devesh.pradhan1
0 siblings, 0 replies; only message in thread
From: devesh.pradhan1 @ 2017-12-17 8:27 UTC (permalink / raw)
To: dave.jiang; +Cc: linux-kernel, devesh pradhan
From: devesh pradhan <devesh.pradhna1@gmail.com>
Fixed a "foo * bar" and add tab coding style issue
Signed-off-by: devesh pradhan <devesh.pradhna1@gmail.com>
---
mm/filemap.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/mm/filemap.c b/mm/filemap.c
index a49702445ce0..e14d62876980 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2170,8 +2170,7 @@ generic_file_read_iter(struct kiocb *iocb, struct iov_iter *iter)
return -EAGAIN;
} else {
retval = filemap_write_and_wait_range(mapping,
- iocb->ki_pos,
- iocb->ki_pos + count - 1);
+ iocb->ki_pos, iocb->ki_pos + count - 1);
if (retval < 0)
goto out;
}
@@ -2569,7 +2568,7 @@ const struct vm_operations_struct generic_file_vm_ops = {
/* This is used for a general mmap of a disk file */
-int generic_file_mmap(struct file * file, struct vm_area_struct * vma)
+int generic_file_mmap(struct file *file, struct vm_area_struct *vma)
{
struct address_space *mapping = file->f_mapping;
@@ -2590,11 +2589,11 @@ int generic_file_readonly_mmap(struct file *file, struct vm_area_struct *vma)
return generic_file_mmap(file, vma);
}
#else
-int generic_file_mmap(struct file * file, struct vm_area_struct * vma)
+int generic_file_mmap(struct file *file, struct vm_area_struct *vma)
{
return -ENOSYS;
}
-int generic_file_readonly_mmap(struct file * file, struct vm_area_struct * vma)
+int generic_file_readonly_mmap(struct file *file, struct vm_area_struct *vma)
{
return -ENOSYS;
}
@@ -3030,7 +3029,7 @@ EXPORT_SYMBOL(generic_perform_write);
ssize_t __generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
{
struct file *file = iocb->ki_filp;
- struct address_space * mapping = file->f_mapping;
+ struct address_space *mapping = file->f_mapping;
struct inode *inode = mapping->host;
ssize_t written = 0;
ssize_t err;
--
2.14.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-17 8:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-17 8:27 [PATCH 2/2] mm: filemap: fixed a "foo * bar" and added tab coding style issue devesh.pradhan1
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).