summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorAlexandru Moise2015-09-22 23:00:07 +0200
committerDavid Sterba2015-10-21 18:28:48 +0200
commit6e4d6fa12ceb22f87d49e043e5a7636abdac970f (patch)
tree95ca88faea87dcdf276ee705958fc0295d8aa4a7 /fs/btrfs/file.c
parentbtrfs: change num_items type from u64 to unsigned int (diff)
downloadkernel-qcow2-linux-6e4d6fa12ceb22f87d49e043e5a7636abdac970f.tar.gz
kernel-qcow2-linux-6e4d6fa12ceb22f87d49e043e5a7636abdac970f.tar.xz
kernel-qcow2-linux-6e4d6fa12ceb22f87d49e043e5a7636abdac970f.zip
btrfs: declare rsv_count as unsigned int instead of int
rsv_count ultimately gets passed to start_transaction() which now takes an unsigned int as its num_items parameter. The value of rsv_count should always be positive so declare it as being unsigned. 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/file.c')
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index b6695c43859d..7031e9631519 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -2263,7 +2263,7 @@ static int btrfs_punch_hole(struct inode *inode, loff_t offset, loff_t len)
u64 drop_end;
int ret = 0;
int err = 0;
- int rsv_count;
+ unsigned int rsv_count;
bool same_page;
bool no_holes = btrfs_fs_incompat(root->fs_info, NO_HOLES);
u64 ino_size;