When running with quotas enabled on a filesystem using soft updates,

the system would panic when a user's inode quota was exceeded (see
PR 18959 for details). This fixes that problem.

PR:		18959
Submitted by:	Jason Godsey <jason@unixguy.fidalgo.net>
This commit is contained in:
Kirk McKusick 2000-06-18 22:14:28 +00:00
parent d3abb52714
commit 6019e6208f
2 changed files with 6 additions and 4 deletions

View file

@ -52,7 +52,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* from: @(#)ffs_softdep.c 9.57 (McKusick) 3/17/00
* from: @(#)ffs_softdep.c 9.58 (McKusick) 6/18/00
* $FreeBSD$
*/
@ -1912,7 +1912,8 @@ check_inode_unwritten(inodedep)
inodedep->id_state |= ALLCOMPLETE;
LIST_REMOVE(inodedep, id_deps);
inodedep->id_buf = NULL;
WORKLIST_REMOVE(&inodedep->id_list);
if (inodedep->id_state & ONWORKLIST)
WORKLIST_REMOVE(&inodedep->id_list);
if (inodedep->id_savedino != NULL) {
FREE(inodedep->id_savedino, M_INODEDEP);
inodedep->id_savedino = NULL;

View file

@ -52,7 +52,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* from: @(#)ffs_softdep.c 9.57 (McKusick) 3/17/00
* from: @(#)ffs_softdep.c 9.58 (McKusick) 6/18/00
* $FreeBSD$
*/
@ -1912,7 +1912,8 @@ check_inode_unwritten(inodedep)
inodedep->id_state |= ALLCOMPLETE;
LIST_REMOVE(inodedep, id_deps);
inodedep->id_buf = NULL;
WORKLIST_REMOVE(&inodedep->id_list);
if (inodedep->id_state & ONWORKLIST)
WORKLIST_REMOVE(&inodedep->id_list);
if (inodedep->id_savedino != NULL) {
FREE(inodedep->id_savedino, M_INODEDEP);
inodedep->id_savedino = NULL;