From: Charles Han Date: Thu, 10 Apr 2025 09:07:22 +0000 (+0800) Subject: btrfs: update and correct description of btrfs_get_or_create_delayed_node() X-Git-Tag: v6.16-rc1~214^2~120 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ecf5b757c74cb8e487a4e7cf2e90b9a3103d764a;p=thirdparty%2Fkernel%2Flinux.git btrfs: update and correct description of btrfs_get_or_create_delayed_node() The comment mistakenly says the function is returning PTR_ERR instead of ERR_PTR. Fix it and update it so it's more descriptive. Signed-off-by: Charles Han Reviewed-by: David Sterba [ Enhance the function comment. ] Signed-off-by: David Sterba --- diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c index c49bf8f2889dd..2d62e9ba65a43 100644 --- a/fs/btrfs/delayed-inode.c +++ b/fs/btrfs/delayed-inode.c @@ -119,7 +119,12 @@ static struct btrfs_delayed_node *btrfs_get_delayed_node( return NULL; } -/* Will return either the node or PTR_ERR(-ENOMEM) */ +/* + * Look up an existing delayed node associated with @btrfs_inode or create a new + * one and insert it to the delayed nodes of the root. + * + * Return the delayed node, or error pointer on failure. + */ static struct btrfs_delayed_node *btrfs_get_or_create_delayed_node( struct btrfs_inode *btrfs_inode) {