]> git.baikalelectronics.ru Git - kernel.git/commit
ufs: fix reserved blocks check
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 14 Jun 2017 19:41:17 +0000 (15:41 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 14 Jun 2017 19:46:05 +0000 (15:46 -0400)
commita5efb9b9efbb55c3d56aee7a4d9551cd04b6c65a
tree8e1c25ca448818b0541675b84242b9117810bf90
parent6a032c0ca0cc419fb691b0528e31a2d874301f52
ufs: fix reserved blocks check

a) honour ->s_minfree; don't just go with default (5)
b) don't bother with capability checks until we know we'll need them

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ufs/balloc.c