summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/ffs_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ufs/ffs/ffs_alloc.c')
-rw-r--r--sys/ufs/ffs/ffs_alloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c
index 44d1f32..1795161 100644
--- a/sys/ufs/ffs/ffs_alloc.c
+++ b/sys/ufs/ffs/ffs_alloc.c
@@ -217,9 +217,9 @@ nospace:
(void) chkdq(ip, -btodb(size), cred, FORCE);
UFS_LOCK(ump);
#endif
- if (fs->fs_pendingblocks > 0 && reclaimed == 0) {
+ if (reclaimed == 0) {
reclaimed = 1;
- softdep_request_cleanup(fs, ITOV(ip), FLUSH_BLOCKS_WAIT);
+ softdep_request_cleanup(fs, ITOV(ip), cred, FLUSH_BLOCKS_WAIT);
goto retry;
}
UFS_UNLOCK(ump);
@@ -418,9 +418,9 @@ nospace:
/*
* no space available
*/
- if (fs->fs_pendingblocks > 0 && reclaimed == 0) {
+ if (reclaimed == 0) {
reclaimed = 1;
- softdep_request_cleanup(fs, vp, FLUSH_BLOCKS_WAIT);
+ softdep_request_cleanup(fs, vp, cred, FLUSH_BLOCKS_WAIT);
UFS_UNLOCK(ump);
if (bp) {
brelse(bp);
@@ -1023,7 +1023,7 @@ dup_alloc:
noinodes:
if (fs->fs_pendinginodes > 0 && reclaimed == 0) {
reclaimed = 1;
- softdep_request_cleanup(fs, pvp, FLUSH_INODES_WAIT);
+ softdep_request_cleanup(fs, pvp, cred, FLUSH_INODES_WAIT);
goto retry;
}
UFS_UNLOCK(ump);
OpenPOWER on IntegriCloud