summaryrefslogtreecommitdiff
path: root/sys/gnu
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-09-19 16:51:43 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-09-19 16:51:43 +0000
commit84d2b7df26aaa4c58367dd2ba8a64bf84a7bb069 (patch)
treee3c313c0b77fbcc1f434ec162a95a06a9e05a773 /sys/gnu
parenta56e23da23b802f32e54aa5dadb70caf48a147d2 (diff)
Notes
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/fs/ext2fs/ext2_alloc.c2
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 8acfda8f1536..f2a2d361d82a 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);
}