Skip to content

Commit 92cb01c

Browse files
author
Christian Brauner
committed
fs: update kernel-doc for vfs_rename()
Commit 9fe6145 ("namei: introduce struct renamedata") introduces a new struct for vfs_rename() and makes the vfs_rename() kernel-doc argument description out of sync. Move the description of arguments for vfs_rename() to a new kernel-doc for the struct renamedata to make these descriptions checkable against the actual implementation. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lukas Bulwahn <[email protected]> Acked-by: Christian Brauner <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent 3901539 commit 92cb01c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

include/linux/fs.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,6 +1782,17 @@ int vfs_rmdir(struct user_namespace *, struct inode *, struct dentry *);
17821782
int vfs_unlink(struct user_namespace *, struct inode *, struct dentry *,
17831783
struct inode **);
17841784

1785+
/**
1786+
* struct renamedata - contains all information required for renaming
1787+
* @old_mnt_userns: old user namespace of the mount the inode was found from
1788+
* @old_dir: parent of source
1789+
* @old_dentry: source
1790+
* @new_mnt_userns: new user namespace of the mount the inode was found from
1791+
* @new_dir: parent of destination
1792+
* @new_dentry: destination
1793+
* @delegated_inode: returns an inode needing a delegation break
1794+
* @flags: rename flags
1795+
*/
17851796
struct renamedata {
17861797
struct user_namespace *old_mnt_userns;
17871798
struct inode *old_dir;

0 commit comments

Comments
 (0)