Linux-Fsdevel Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] fs: Fix some comments in open.c and read_write.c
@ 2020-08-12  9:46 Yi Wang
  0 siblings, 0 replies; only message in thread
From: Yi Wang @ 2020-08-12  9:46 UTC (permalink / raw)
  To: viro
  Cc: linux-fsdevel, linux-kernel, xue.zhihong, wang.yi59,
	wang.liang82, Liao Pingfang

From: Liao Pingfang <liao.pingfang@zte.com.cn>

Correct comments in open.c, since the parameter(opened/cred)
is not used anymore. Also correct size to maxsize in
read_write.c.

Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
---
 fs/open.c       | 2 --
 fs/read_write.c | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/fs/open.c b/fs/open.c
index c80e9f497e9b..fa54a7d313e9 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -875,7 +875,6 @@ static int do_dentry_open(struct file *f,
  * @file: file pointer
  * @dentry: pointer to dentry
  * @open: open callback
- * @opened: state of open
  *
  * This can be used to finish opening a file passed to i_op->atomic_open().
  *
@@ -929,7 +928,6 @@ EXPORT_SYMBOL(file_path);
  * vfs_open - open the file at the given path
  * @path: path to open
  * @file: newly allocated file with f_flag initialized
- * @cred: credentials to use
  */
 int vfs_open(const struct path *path, struct file *file)
 {
diff --git a/fs/read_write.c b/fs/read_write.c
index 5db58b8c78d0..058563ee26fd 100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -71,7 +71,7 @@ EXPORT_SYMBOL(vfs_setpos);
  * @file:	file structure to seek on
  * @offset:	file offset to seek to
  * @whence:	type of seek
- * @size:	max size of this file in file system
+ * @maxsize:	max size of this file in file system
  * @eof:	offset used for SEEK_END position
  *
  * This is a variant of generic_file_llseek that allows passing in a custom
-- 
2.26.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-12  9:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12  9:46 [PATCH] fs: Fix some comments in open.c and read_write.c Yi Wang

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