]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: declare rsv_count as unsigned int instead of int
authorAlexandru Moise <00moses.alexander00@gmail.com>
Tue, 22 Sep 2015 21:00:07 +0000 (21:00 +0000)
committerDavid Sterba <dsterba@suse.com>
Wed, 21 Oct 2015 16:28:48 +0000 (18:28 +0200)
commit040219748ebe94b53cdc68f062bfb9e8f01737fb
tree95ca88faea87dcdf276ee705958fc0295d8aa4a7
parent13dc5be565265977dc6b6e5d47b13e2805fc27ef
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>
fs/btrfs/file.c