From: Stefan Behrens Date: Tue, 7 May 2013 10:23:30 +0000 (+0200) Subject: btrfs: fix btrfs_extend_item() comment X-Git-Tag: v3.11-rc1~89^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e21f14d179ee8973a9b18552854c9934fcbe370;p=platform%2Fupstream%2Fkernel-adaptation-pc.git btrfs: fix btrfs_extend_item() comment The size parameter to btrfs_extend_item() is the number of bytes to add to the item, not the size of the item after the operation (like it is for btrfs_truncate_item(), there the size parameter is not the number of bytes to take away, but the total size of the item after truncation). Fix it in the comment. Signed-off-by: Stefan Behrens Signed-off-by: Jiri Kosina --- diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 02fae7f..17dffe33 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -4430,7 +4430,7 @@ void btrfs_truncate_item(struct btrfs_root *root, struct btrfs_path *path, } /* - * make the item pointed to by the path bigger, data_size is the new size. + * make the item pointed to by the path bigger, data_size is the added size. */ void btrfs_extend_item(struct btrfs_root *root, struct btrfs_path *path, u32 data_size)