HomeFreeBSD

ffs: do not call softdep_prealloc() from UFS_BALLOC()

Description

ffs: do not call softdep_prealloc() from UFS_BALLOC()

Do it in ffs_write(), where we can gracefuly handle relock and its
consequences. In particular, recheck the v_data to see if the vnode
reclamation ended, and return EBADF when we cannot proceed with the
write.

Reviewed by: mckusick
Reported by: pho
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Details

Provenance
kibAuthored on Feb 18 2021, 2:51 PM
Parents
rGcc9958bf22f1: ffs_reallocblks: change the guard for softdep_prealloc() call to DOINGSUJ()
Branches
Unknown
Tags
Unknown