For async UFS mounts, shrink the directory asynchronously, at least do
not pass IO_SYNC to ffs_truncate() unneccessary. Submitted by: bde MFC after: 1 week
This commit is contained in:
parent
53ff4bbc05
commit
3d0691acdc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300082
@ -1131,7 +1131,7 @@ ufs_direnter(dvp, tvp, dirp, cnp, newdirbp, isrename)
|
||||
if (tvp != NULL)
|
||||
VOP_UNLOCK(tvp, 0);
|
||||
error = UFS_TRUNCATE(dvp, (off_t)dp->i_endoff,
|
||||
IO_NORMAL | IO_SYNC, cr);
|
||||
IO_NORMAL | (DOINGASYNC(dvp) ? 0 : IO_SYNC), cr);
|
||||
if (error != 0)
|
||||
vprint("ufs_direnter: failed to truncate", dvp);
|
||||
#ifdef UFS_DIRHASH
|
||||
|
Loading…
Reference in New Issue
Block a user