Btrfs: fix a regression in balance usage filter
authorIlya Dryomov <idryomov@gmail.com>
Mon, 21 Jan 2013 13:15:56 +0000 (15:15 +0200)
committerChris Mason <chris.mason@fusionio.com>
Tue, 22 Jan 2013 01:40:27 +0000 (20:40 -0500)
commita105bb88f46b60de2adf1ee98745bd59362b09ab
tree85131c41a1cd80b1365b75ecc4d164873d70b059
parent83bfccb5c085658b0ad1450a6fc13b0bb5440970
Btrfs: fix a regression in balance usage filter

Commit 3fed40cc ("Btrfs: cleanup duplicated division functions"), which
was merged into 3.8-rc1, has introduced a regression by removing logic
that was guarding us against bad user input.  Bring it back.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/volumes.c