Commit 7e21f14d179ee8973a9b18552854c9934fcbe370
Committed by
Jiri Kosina
1 parent
611a75e187
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/btrfs/ctree.c
... | ... | @@ -4430,7 +4430,7 @@ |
4430 | 4430 | } |
4431 | 4431 | |
4432 | 4432 | /* |
4433 | - * make the item pointed to by the path bigger, data_size is the new size. | |
4433 | + * make the item pointed to by the path bigger, data_size is the added size. | |
4434 | 4434 | */ |
4435 | 4435 | void btrfs_extend_item(struct btrfs_root *root, struct btrfs_path *path, |
4436 | 4436 | u32 data_size) |