aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorAlexandru Moise <00moses.alexander00@gmail.com>2015-08-23 16:01:42 +0000
committerDavid Sterba <dsterba@suse.com>2015-10-21 18:28:48 +0200
commitce0eac2a1d82eb841eae357bcef7ac39df131b21 (patch)
treed4f547bdf48b1147afa28183d02489e5e0f5ab98 /fs/btrfs/ctree.c
parentBtrfs: btrfs_submit_bio_hook: Use btrfs_wq_endio_type values instead of integer constants (diff)
downloadlinux-dev-ce0eac2a1d82eb841eae357bcef7ac39df131b21.tar.xz
linux-dev-ce0eac2a1d82eb841eae357bcef7ac39df131b21.zip
btrfs: Fixed dsize and last_off declarations
The return values of btrfs_item_offset_nr and btrfs_item_size_nr are of type u32. To avoid mixing signed and unsigned integers we should also declare dsize and last_off to be of type u32. Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 5f745eadf77d..f55391301256 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -4940,8 +4940,8 @@ int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root,
{
struct extent_buffer *leaf;
struct btrfs_item *item;
- int last_off;
- int dsize = 0;
+ u32 last_off;
+ u32 dsize = 0;
int ret = 0;
int wret;
int i;