ffs_reallocblks: change the guard for softdep_prealloc() call to DOINGSUJ()
instead of DOINGSOFTDEP(). The softdep_prealloc() function does nothing in SU case. Note that the call should be safe with regard to the vnode relock, because it is called with MNT_NOWAIT, which does not descend into fsync. Reviewed by: mckusick Tested by: pho MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
6e822e9957
commit
cc9958bf22
@ -543,7 +543,7 @@ ffs_reallocblks(ap)
|
||||
* here. Instead we simply fail to reallocate blocks if this
|
||||
* rare condition arises.
|
||||
*/
|
||||
if (DOINGSOFTDEP(ap->a_vp))
|
||||
if (DOINGSUJ(ap->a_vp))
|
||||
if (softdep_prealloc(ap->a_vp, MNT_NOWAIT) != 0)
|
||||
return (ENOSPC);
|
||||
if (ump->um_fstype == UFS1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user