diff options
Diffstat (limited to 'sys/fs/tmpfs/tmpfs_subr.c')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_subr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index b8e9a32..ff740ca 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -898,7 +898,10 @@ tmpfs_reg_resize(struct vnode *vp, off_t newsize) node->tn_reg.tn_aobj_pages = newpages; + TMPFS_LOCK(tmp); tmp->tm_pages_used += (newpages - oldpages); + TMPFS_UNLOCK(tmp); + node->tn_size = newsize; vnode_pager_setsize(vp, newsize); if (newsize < oldsize) { |