When block allocation fails in UFS_BALLOC(), and the volume does not
authorkib <kib@FreeBSD.org>
Tue, 16 Aug 2016 16:50:48 +0000 (16:50 +0000)
committerkib <kib@FreeBSD.org>
Tue, 16 Aug 2016 16:50:48 +0000 (16:50 +0000)
commit4e01efcc0c917cfbefc61574b016fb62540e53e0
treec1af2dbd013609cc6222abb7873ae981dc62cac8
parent03c6968a37b4902e5b6ecb785eb9d455d147ac83
When block allocation fails in UFS_BALLOC(), and the volume does not
have SU enabled, there is no point in calling softdep_request_cleanup().

The call cannot produce free blocks, but we unecessarily lock ufsmount
and do inode block write.  Usual point of not doing optimizations for
the corner case of the full volume is not applicable there, the work
is easily avoidable, and the addition CPU and disk io load do not lead
to succeeding retry.

Reviewed by: mckusick
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/ufs/ffs/ffs_balloc.c