vfs kernel-doc fixes for 6.19
PATCH 1/2 fs: Describe @isnew parameter in ilookup5_nowait()
In reply to Bagas SanjayaSphinx reports kernel-doc warning:
WARNING: ./fs/inode.c:1607 function parameter 'isnew' not described in 'ilookup5_nowait'
Describe the parameter.
--- fs/inode.c | 3 +++ 1 file changed, 3 insertions(+)
fs/inode.c +3 -0
@@ -1593,6 +1593,9 @@ EXPORT_SYMBOL(igrab);* @hashval: hash value (usually inode number) to search for * @test: callback used for comparisons between inodes * @data: opaque data pointer to pass to @test +* @isnew: return argument telling whether I_NEW was set when +* the inode was found in hash (the caller needs to +* wait for I_NEW to clear) * * Search for the inode specified by @hashval and @data in the inode cache. * If the inode is in the cache, the inode is returned with an incremented
Signature · 1 line
An old man doll... just what I always wanted! - Clara
PATCH 2/2 VFS: fix __start_dirop() kernel-doc warnings
In reply to Bagas SanjayaSphinx report kernel-doc warnings:
WARNING: ./fs/namei.c:2853 function parameter 'state' not described in '__start_dirop' WARNING: ./fs/namei.c:2853 expecting prototype for start_dirop(). Prototype was for __start_dirop() instead
Fix them up.
--- fs/namei.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
fs/namei.c +2 -1
@@ -2836,10 +2836,11 @@ static int filename_parentat(int dfd, struct filename *name, }/** -* start_dirop - begin a create or remove dirop, performing locking and lookup +* __start_dirop - begin a create or remove dirop, performing locking and lookup * @parent: the dentry of the parent in which the operation will occur * @name: a qstr holding the name within that parent * @lookup_flags: intent and other lookup flags. +* @state: task state bitmask * * The lookup is performed and necessary locks are taken so that, on success, * the returned dentry can be operated on safely.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
cover vfs kernel-doc fixes for 6.19
Hi,
Here are kernel-doc fixes for vfs subsystem targetting 6.19. This small series is split from much larger kernel-doc fixes series I posted a while ago [1].
Enjoy!
[1]: https://lore.kernel.org/linux-fsdevel/[email protected]/
Bagas Sanjaya (2):
fs: Describe @isnew parameter in ilookup5_nowait()
VFS: fix __start_dirop() kernel-doc warnings
fs/inode.c | 3 +++ fs/namei.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-)
base-commit: 24835a96f21ebb295d24e265b5466d9e40f12cbd
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Re: [PATCH 1/2] fs: Describe @isnew parameter in ilookup5_nowait()
In reply to Bagas SanjayaQuoted 8 lines · Bagas Sanjaya
Sphinx reports kernel-doc warning:
WARNING: ./fs/inode.c:1607 function parameter 'isnew' not described in 'ilookup5_nowait'Describe the parameter.
Fixes a27628f4363435 ("fs: rework I_NEW handling to operate without fences")Signed-off-by Bagas Sanjaya <[email protected]>
Looks good. Feel free to add:
Honza
Quoted 21 lines
--- fs/inode.c | 3 +++ 1 file changed, 3 insertions(+)fs/inode.c +3
-0@@ -1593,6 +1593,9 @@ EXPORT_SYMBOL(igrab);* @hashval: hash value (usually inode number) to search for * @test: callback used for comparisons between inodes * @data: opaque data pointer to pass to @test +* @isnew: return argument telling whether I_NEW was set when +* the inode was found in hash (the caller needs to +* wait for I_NEW to clear) * * Search for the inode specified by @hashval and @data in the inode cache. * If the inode is in the cache, the inode is returned with an incremented Signature · 1 line
An old man doll... just what I always wanted! - Clara
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Re: [PATCH 2/2] VFS: fix __start_dirop() kernel-doc warnings
In reply to Bagas SanjayaQuoted 9 lines · Bagas Sanjaya
Sphinx report kernel-doc warnings:
WARNING: ./fs/namei.c:2853 function parameter 'state' not described in '__start_dirop' WARNING: ./fs/namei.c:2853 expecting prototype for start_dirop(). Prototype was for __start_dirop() insteadFix them up.
Fixes ff7c4ea11a05c8 ("VFS: add start_creating_killable() and start_removing_killable()")Signed-off-by Bagas Sanjaya <[email protected]>
Looks good. Feel free to add:
Honza
Quoted 24 lines
--- fs/namei.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)fs/namei.c +2
-1@@ -2836,10 +2836,11 @@ static int filename_parentat(int dfd, struct filename *name, }/** -* start_dirop - begin a create or remove dirop, performing locking and lookup +* __start_dirop - begin a create or remove dirop, performing locking and lookup * @parent: the dentry of the parent in which the operation will occur * @name: a qstr holding the name within that parent * @lookup_flags: intent and other lookup flags. +* @state: task state bitmask * * The lookup is performed and necessary locks are taken so that, on success, * the returned dentry can be operated on safely. Signature · 1 line
An old man doll... just what I always wanted! - Clara
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Re: [PATCH 1/2] fs: Describe @isnew parameter in ilookup5_nowait()
In reply to Bagas SanjayaQuoted 17 lines · Bagas Sanjaya
Sphinx reports kernel-doc warning:
WARNING: ./fs/inode.c:1607 function parameter 'isnew' not described in 'ilookup5_nowait'Describe the parameter.
Fixes a27628f4363435 ("fs: rework I_NEW handling to operate without fences")Signed-off-by Bagas Sanjaya <[email protected]>--- fs/inode.c | 3 +++ 1 file changed, 3 insertions(+)fs/inode.c +0
-0
fs/inode.c EXPORT_SYMBOL(igrab); · line 1601
Quoted 9 lines
fs/inode.c +3
-0@@ -1593,6 +1593,9 @@ EXPORT_SYMBOL(igrab);* @hashval: hash value (usually inode number) to search for * @test: callback used for comparisons between inodes * @data: opaque data pointer to pass to @test +* @isnew: return argument telling whether I_NEW was set when +* the inode was found in hash (the caller needs to +* wait for I_NEW to clear) * * Search for the inode specified by @hashval and @data in the inode cache. * If the inode is in the cache, the inode is returned with an incremented
Re: [PATCH 2/2] VFS: fix __start_dirop() kernel-doc warnings
In reply to Bagas SanjayaQuoted 20 lines · Bagas Sanjaya
Sphinx report kernel-doc warnings:
WARNING: ./fs/namei.c:2853 function parameter 'state' not described in '__start_dirop' WARNING: ./fs/namei.c:2853 expecting prototype for start_dirop(). Prototype was for __start_dirop() insteadFix them up.
Fixes ff7c4ea11a05c8 ("VFS: add start_creating_killable() and start_removing_killable()")Signed-off-by Bagas Sanjaya <[email protected]>--- fs/namei.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)fs/namei.c +0
-0@@ -2836,10 +2836,11 @@ static int filename_parentat(int dfd, struct filename *name, }
fs/namei.c static int filename_parentat(int dfd, struct filename *name, · line 2846
Quoted 10 lines
fs/namei.c +2
-1/** -* start_dirop - begin a create or remove dirop, performing locking and lookup +* __start_dirop - begin a create or remove dirop, performing locking and lookup * @parent: the dentry of the parent in which the operation will occur * @name: a qstr holding the name within that parent * @lookup_flags: intent and other lookup flags. +* @state: task state bitmask * * The lookup is performed and necessary locks are taken so that, on success, * the returned dentry can be operated on safely.
Quoted 9 lines · Bagas Sanjaya
Here are kernel-doc fixes for vfs subsystem targetting 6.19. This small series is split from much larger kernel-doc fixes series I posted a while ago [1].
Enjoy!
[1]: https://lore.kernel.org/linux-fsdevel/[email protected]/
[...]
Applied to the vfs.fixes branch of the vfs/vfs.git tree. Patches in the vfs.fixes branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.fixes
[1/2] fs: Describe @isnew parameter in ilookup5_nowait()
https://git.kernel.org/vfs/vfs/c/fe33729d2907 [2/2] VFS: fix __start_dirop() kernel-doc warnings https://git.kernel.org/vfs/vfs/c/73a91ef328a9
Re: [PATCH 2/2] VFS: fix __start_dirop() kernel-doc warnings
In reply to Bagas SanjayaQuoted 18 lines · Bagas Sanjaya
Sphinx report kernel-doc warnings:
WARNING: ./fs/namei.c:2853 function parameter 'state' not described in '__start_dirop' WARNING: ./fs/namei.c:2853 expecting prototype for start_dirop(). Prototype was for __start_dirop() insteadFix them up.
Fixes ff7c4ea11a05c8 ("VFS: add start_creating_killable() and start_removing_killable()")Signed-off-by Bagas Sanjaya <[email protected]>--- fs/namei.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)fs/namei.c +0
-0
fs/namei.c static int filename_parentat(int dfd, struct filename *name, · line 2843
Quoted 9 lines
fs/namei.c +2
-1@@ -2836,10 +2836,11 @@ static int filename_parentat(int dfd, struct filename *name, }/** -* start_dirop - begin a create or remove dirop, performing locking and lookup +* __start_dirop - begin a create or remove dirop, performing locking and lookup * @parent: the dentry of the parent in which the operation will occur * @name: a qstr holding the name within that parent * @lookup_flags: intent and other lookup flags. +* @state: task state bitmask
I would really rather the doco comment was moved to be before start_dirop(), and left unchanged.
Otherwise we would really need to actually docoument "@state", not just add vague words to shut the checker up.
There was already been a patch posted to do this.
NeilBrown
Quoted 7 lines
fs/namei.c +0
-0* * The lookup is performed and necessary locks are taken so that, on success, * the returned dentry can be operated on safely. Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 9 lines · Bagas Sanjaya
Here are kernel-doc fixes for vfs subsystem targetting 6.19. This small series is split from much larger kernel-doc fixes series I posted a while ago [1].
Enjoy!
[1]: https://lore.kernel.org/linux-fsdevel/[email protected]/
[...]
Applied to the vfs-7.0.misc branch of the vfs/vfs.git tree. Patches in the vfs-7.0.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs-7.0.misc
[1/2] fs: Describe @isnew parameter in ilookup5_nowait()
https://git.kernel.org/vfs/vfs/c/b0f5804b4178 [2/2] VFS: fix __start_dirop() kernel-doc warnings https://git.kernel.org/vfs/vfs/c/ba4c74f80ef3