Skip to contentSkip to conversation

Update documentation of vfs_tmpfile

PATCH In review Hok Chun NG (Ben) 2 participants 4 messages Feb 21, 2023 – Feb 22, 2023 1 message not in the archive VFS

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 Update documentation of vfs_tmpfile

On function vfs_tmpfile, documentation is updated according to function signature update.

Description for 'dentry' and 'open_flag' removed.
Description for 'parentpath' and 'file' added.

---
 fs/namei.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/namei.c +2 -2
index 309ae6fc8c99..21261163d6d3 100644
@@ -3571,9 +3571,9 @@ static int do_open(struct nameidata *nd,
 /**
  * vfs_tmpfile - create tmpfile
  * @mnt_userns:	user namespace of the mount the inode was found from
- * @dentry:	pointer to dentry of the base directory
+ * @parentpath: path to the base directory
+ * @file:  	pointer to the file struct of the new tmpfile
  * @mode:	mode of the new tmpfile
- * @open_flag:	flags
  *
  * Create a temporary file.
  *
Signature · 1 line
2.34.1
#2 lore raw
Quoted 4 lines · Hok Chun NG (Ben)

On function vfs_tmpfile, documentation is updated according to function signature update.

Description for 'dentry' and 'open_flag' removed.
Description for 'parentpath' and 'file' added.

What commit did vfs_tmpfile() change its signature?

For the patch description, I'd like to write "Commit <commit> changes function signature for vfs_tmpfile(). Catch the function documentation up with the change."

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#3 lore raw

Hi Bagas,

Quoted 9 lines · Bagas Sanjaya
Quoted 4 lines · Hok Chun NG (Ben)

On function vfs_tmpfile, documentation is updated according to function signature update.

Description for 'dentry' and 'open_flag' removed.
Description for 'parentpath' and 'file' added.

What commit did vfs_tmpfile() change its signature?

Changes of the function signature is from 9751b338656f05a0ce918befd5118fcd970c71c6
vfs: move open right after ->tmpfile() by Miklos Szeredi [email protected]

Quoted 4 lines

For the patch description, I'd like to write "Commit <commit> changes function signature for vfs_tmpfile(). Catch the function documentation up with the change."

I agree. Thank you for the suggestion.

Quoted 5 lines

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara

Best,
Ben

#4 lore raw
Quoted 7 lines · Hok Chun NG (Ben)

Hi Bagas,

Quoted 5 lines · Bagas Sanjaya
Quoted 2 lines · Hok Chun NG (Ben)

On function vfs_tmpfile, documentation is updated according to function signature update.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Description for 'dentry' and 'open_flag' removed.
Description for 'parentpath' and 'file' added.

What commit did vfs_tmpfile() change its signature?

Changes of the function signature is from 9751b338656f05a0ce918befd5118fcd970c71c6
vfs: move open right after ->tmpfile() by Miklos Szeredi [email protected]

Nice.

The preferred git pretty format when referring to existing commit is "%h (\"%s\")". Make sure that you set core.abbrev to at least 12.

Quoted 7 lines
Quoted 4 lines

For the patch description, I'd like to write "Commit <commit> changes function signature for vfs_tmpfile(). Catch the function documentation up with the change."

I agree. Thank you for the suggestion.

OK, thanks!

Signature · 1 line
An old man doll... just what I always wanted! - Clara