fs: Fix description of vfs_tmpfile()

Message ID 20230306103531.1298202-1-roberto.sassu@huaweicloud.com
State New
Headers
Series fs: Fix description of vfs_tmpfile() |

Commit Message

Roberto Sassu March 6, 2023, 10:35 a.m. UTC
  From: Roberto Sassu <roberto.sassu@huawei.com>

Update the description of vfs_tmpfile() to match the current parameters of
that function.

Fixes: 9751b338656f ("vfs: move open right after ->tmpfile()")
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Acked-by: Christian Brauner <brauner@kernel.org>
---
 fs/namei.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Al Viro March 10, 2023, 3:44 a.m. UTC | #1
On Mon, Mar 06, 2023 at 11:35:31AM +0100, Roberto Sassu wrote:
> From: Roberto Sassu <roberto.sassu@huawei.com>
> 
> Update the description of vfs_tmpfile() to match the current parameters of
> that function.
> 
> Fixes: 9751b338656f ("vfs: move open right after ->tmpfile()")
> Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
> Acked-by: Christian Brauner <brauner@kernel.org>

Applied (#work.misc)
  

Patch

diff --git a/fs/namei.c b/fs/namei.c
index edfedfbccae..f04f7be5893 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -3574,9 +3574,9 @@  static int do_open(struct nameidata *nd,
 /**
  * vfs_tmpfile - create tmpfile
  * @idmap:	idmap of the mount the inode was found from
- * @dentry:	pointer to dentry of the base directory
+ * @parentpath:	pointer to the path of the base directory
+ * @file:	file descriptor of the new tmpfile
  * @mode:	mode of the new tmpfile
- * @open_flag:	flags
  *
  * Create a temporary file.
  *