mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: devesh.pradhan1@gmail.com
To: dave.jiang@intel.com
Cc: linux-kernel@vger.kernel.org, devesh pradhan <devesh.pradhna1@gmail.com>
Subject: [PATCH 2/2] mm: filemap: fixed a "foo * bar" and added tab coding style issue
Date: Sun, 17 Dec 2017 13:57:13 +0530	[thread overview]
Message-ID: <20171217082713.5252-1-devesh.pradhan1@gmail.com> (raw)

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

                 reply	other threads:[~2017-12-17  8:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171217082713.5252-1-devesh.pradhan1@gmail.com \
    --to=devesh.pradhan1@gmail.com \
    --cc=dave.jiang@intel.com \
    --cc=devesh.pradhna1@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®