Due to a lag in updating the fs_pendinginodes count, we cannot depend

on it to decide whether we should try to reclaim inodes when we run
short.

Discovered by: Peter Holm
This commit is contained in:
Kirk McKusick 2011-05-28 15:07:29 +00:00
parent 27a43b2e51
commit 1508294bb6

View File

@ -1022,7 +1022,7 @@ ffs_valloc(pvp, mode, cred, vpp)
(*vpp)->v_op = &ffs_vnodeops1;
return (0);
noinodes:
if (fs->fs_pendinginodes > 0 && reclaimed == 0) {
if (reclaimed == 0) {
reclaimed = 1;
softdep_request_cleanup(fs, pvp, cred, FLUSH_INODES_WAIT);
goto retry;