summaryrefslogtreecommitdiff
path: root/fs/btrfs/root-tree.c
diff options
context:
space:
mode:
authorAlexandru Moise <00moses.alexander00@gmail.com>2015-08-24 21:56:28 +0000
committerDavid Sterba <dsterba@suse.com>2015-10-21 18:28:48 +0200
commit0412e58c6d62168643a285f99b2354fa97df6cf3 (patch)
tree74de26553a3385ba986e9dac644403ba5f58ce85 /fs/btrfs/root-tree.c
parentce0eac2a1d82eb841eae357bcef7ac39df131b21 (diff)
btrfs: Fixed declaration of old_len
old_len is used to store the return value of btrfs_item_size_nr(). The return value of btrfs_item_size_nr() is of type u32. To improve code correctness and avoid mixing signed and unsigned integers I've changed old_len to be of type u32 as well. 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/root-tree.c')
-rw-r--r--fs/btrfs/root-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c
index 360a728a639f..024ea4fb3303 100644
--- a/fs/btrfs/root-tree.c
+++ b/fs/btrfs/root-tree.c
@@ -141,7 +141,7 @@ int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root
int ret;
int slot;
unsigned long ptr;
- int old_len;
+ u32 old_len;
path = btrfs_alloc_path();
if (!path)