diff options
Diffstat (limited to 'sys/gnu/fs/ext2fs/ext2_alloc.c')
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_alloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_alloc.c b/sys/gnu/fs/ext2fs/ext2_alloc.c index 8acfda8..f2a2d36 100644 --- a/sys/gnu/fs/ext2fs/ext2_alloc.c +++ b/sys/gnu/fs/ext2fs/ext2_alloc.c @@ -165,6 +165,7 @@ ext2_alloc(ip, lbn, bpref, size, cred, bnp) } nospace: ext2_fserr(fs, cred->cr_uid, "file system full"); + GIANT_REQUIRED; /* uprintf */ uprintf("\n%s: write failed, file system is full\n", fs->fs_fsmnt); return (ENOSPC); } @@ -411,6 +412,7 @@ printf("ext2_valloc: allocated inode %d\n", ino); return (0); noinodes: ext2_fserr(fs, cred->cr_uid, "out of inodes"); + GIANT_REQUIRED; /* uprintf */ uprintf("\n%s: create/symlink failed, no inodes free\n", fs->fs_fsmnt); return (ENOSPC); } |