]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: avoid overflowing f_bfree
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Wed, 30 Mar 2016 22:18:14 +0000 (23:18 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 May 2016 13:22:49 +0000 (15:22 +0200)
commit41b34accb265e3a20211a7a8ef3625678f1c6ec7
tree847946f18a22c72839832b78f76253d5185ed24c
parentae02d1bd070767e109f4a6f1bb1f466e9698a355
btrfs: avoid overflowing f_bfree

Since mixed block groups accounting isn't byte-accurate and f_bree is an
unsigned integer, it could overflow. Avoid this.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Suggested-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c