public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfs: fix up the comment in xfs_dir2_isleaf
@ 2022-09-11  3:31 Stephen Zhang
  2022-09-11 22:20 ` Dave Chinner
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Zhang @ 2022-09-11  3:31 UTC (permalink / raw)
  To: djwong, dchinner, chandan.babu; +Cc: zhangshida, starzhangzsd, linux-xfs

xfs_dir2_isleaf is used to see if the directory is a single-leaf
form directory, as commented right above the function.

Signed-off-by: Shida Zhang <zhangshida@kylinos.cn>
---
 fs/xfs/libxfs/xfs_dir2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/libxfs/xfs_dir2.c b/fs/xfs/libxfs/xfs_dir2.c
index 76eedc2756b3..1485f53fecf4 100644
--- a/fs/xfs/libxfs/xfs_dir2.c
+++ b/fs/xfs/libxfs/xfs_dir2.c
@@ -632,7 +632,7 @@ xfs_dir2_isblock(
 int
 xfs_dir2_isleaf(
 	struct xfs_da_args	*args,
-	int			*vp)	/* out: 1 is block, 0 is not block */
+	int			*vp)	/* out: 1 is leaf, 0 is not leaf */
 {
 	xfs_fileoff_t		last;	/* last file offset */
 	int			rval;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-12  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-11  3:31 [PATCH] xfs: fix up the comment in xfs_dir2_isleaf Stephen Zhang
2022-09-11 22:20 ` Dave Chinner
2022-09-12  3:14   ` Stephen Zhang
2022-09-12  5:00     ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox