Commit ecf5b757 authored by Charles Han's avatar Charles Han Committed by David Sterba
Browse files

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: default avatarCharles Han <hanchunchao@inspur.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ Enhance the function comment. ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent ea2a8bac
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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)
{