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)
commitb451cec4bbd913688f5381efad407762a64a92ce
tree8e1c25ca448818b0541675b84242b9117810bf90
parentfffd70f58864f5a48b2c17d02730a460f86d4254
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