summaryrefslogtreecommitdiff
path: root/sys/gnu/ext2fs/ext2_readwrite.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-01-23 22:41:15 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-01-23 22:41:15 +0000
commit157403fff063dd24d83076a7c48bcf82073cefd7 (patch)
tree28de46dab65d3d19dd630572cb52ebfc63225afb /sys/gnu/ext2fs/ext2_readwrite.c
parentd19a7276288ebd45f60e9a499c0d81b3a29c123e (diff)
Notes
Diffstat (limited to 'sys/gnu/ext2fs/ext2_readwrite.c')
-rw-r--r--sys/gnu/ext2fs/ext2_readwrite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/gnu/ext2fs/ext2_readwrite.c b/sys/gnu/ext2fs/ext2_readwrite.c
index 30a2f561c2fd..64065c3d9a3c 100644
--- a/sys/gnu/ext2fs/ext2_readwrite.c
+++ b/sys/gnu/ext2fs/ext2_readwrite.c
@@ -217,6 +217,8 @@ WRITE(ap)
* file servers have no limits, I don't think it matters.
*/
p = uio->uio_procp;
+ /* For p_rlimit. */
+ mtx_assert(&Giant, MA_OWNED);
if (vp->v_type == VREG && p &&
uio->uio_offset + uio->uio_resid >
p->p_rlimit[RLIMIT_FSIZE].rlim_cur) {