aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2013-05-07 12:23:30 +0200
committerJiri Kosina <jkosina@suse.cz>2013-05-28 12:02:12 +0200
commit7e21f14d179ee8973a9b18552854c9934fcbe370 (patch)
treed58c86eef4c6a359e0a5284c4a91e6c9a90931d5 /fs/btrfs/ctree.c
parentinclude/linux/cpu.h: Update comments to reflect reality (diff)
downloadlinux-dev-7e21f14d179ee8973a9b18552854c9934fcbe370.tar.xz
linux-dev-7e21f14d179ee8973a9b18552854c9934fcbe370.zip
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 <sbehrens@giantdisaster.de> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to '')
-rw-r--r--fs/btrfs/ctree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 02fae7f7e42c..17dffe33e8d0 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)