* [PATCH -next] freevxfs: Fix comment on vxfs_readdir
@ 2023-08-22 1:40 GUO Zihua
2023-08-22 2:53 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: GUO Zihua @ 2023-08-22 1:40 UTC (permalink / raw)
To: hch; +Cc: linux-kernel
As vxfs_readdir now switches to iterate_shared interface, the parameter
of the function is changed. However, the comment of has not been
updated.
This patch updates function doc to reflect this change.
Fixes: 9b5d5a170781 ("[readdir] convert freevxfs")
Signed-off-by: GUO Zihua <guozihua@huawei.com>
---
fs/freevxfs/vxfs_lookup.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/fs/freevxfs/vxfs_lookup.c b/fs/freevxfs/vxfs_lookup.c
index f04ba2ed1e1a..53cbb7209324 100644
--- a/fs/freevxfs/vxfs_lookup.c
+++ b/fs/freevxfs/vxfs_lookup.c
@@ -177,12 +177,11 @@ vxfs_lookup(struct inode *dip, struct dentry *dp, unsigned int flags)
/**
* vxfs_readdir - read a directory
* @fp: the directory to read
- * @retp: return buffer
- * @filler: filldir callback
+ * @ctx: Dir context
*
* Description:
- * vxfs_readdir fills @retp with directory entries from @fp
- * using the VFS supplied callback @filler.
+ * vxfs_readdir emits directory entries from @fp using the
+ * VFS supplied @ctx.
*
* Returns:
* Zero.
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] freevxfs: Fix comment on vxfs_readdir
2023-08-22 1:40 [PATCH -next] freevxfs: Fix comment on vxfs_readdir GUO Zihua
@ 2023-08-22 2:53 ` Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2023-08-22 2:53 UTC (permalink / raw)
To: GUO Zihua, hch; +Cc: linux-kernel
On 8/21/23 18:40, GUO Zihua wrote:
> As vxfs_readdir now switches to iterate_shared interface, the parameter
> of the function is changed. However, the comment of has not been
> updated.
>
> This patch updates function doc to reflect this change.
>
> Fixes: 9b5d5a170781 ("[readdir] convert freevxfs")
> Signed-off-by: GUO Zihua <guozihua@huawei.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.
> ---
> fs/freevxfs/vxfs_lookup.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/fs/freevxfs/vxfs_lookup.c b/fs/freevxfs/vxfs_lookup.c
> index f04ba2ed1e1a..53cbb7209324 100644
> --- a/fs/freevxfs/vxfs_lookup.c
> +++ b/fs/freevxfs/vxfs_lookup.c
> @@ -177,12 +177,11 @@ vxfs_lookup(struct inode *dip, struct dentry *dp, unsigned int flags)
> /**
> * vxfs_readdir - read a directory
> * @fp: the directory to read
> - * @retp: return buffer
> - * @filler: filldir callback
> + * @ctx: Dir context
> *
> * Description:
> - * vxfs_readdir fills @retp with directory entries from @fp
> - * using the VFS supplied callback @filler.
> + * vxfs_readdir emits directory entries from @fp using the
> + * VFS supplied @ctx.
> *
> * Returns:
> * Zero.
--
~Randy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-22 2:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-22 1:40 [PATCH -next] freevxfs: Fix comment on vxfs_readdir GUO Zihua
2023-08-22 2:53 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®