diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-11-02 03:47:29 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-11-02 03:47:29 +0000 |
commit | d7b66817a555ea0aea6d93bf029b442e4a74af50 (patch) | |
tree | ebeac457bb5e4c3da6f04064bf2178c195962435 /sys | |
parent | 990c736d55316ca70b9006703818098db951d644 (diff) |
tmpfs free sizes
Diffstat (limited to 'sys')
-rw-r--r-- | sys/tmpfs/tmpfs_mem.c | 4 | ||||
-rw-r--r-- | sys/tmpfs/tmpfs_vfsops.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/tmpfs/tmpfs_mem.c b/sys/tmpfs/tmpfs_mem.c index 89a827d034d..8d902b9cb0f 100644 --- a/sys/tmpfs/tmpfs_mem.c +++ b/sys/tmpfs/tmpfs_mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpfs_mem.c,v 1.4 2014/07/12 18:50:25 tedu Exp $ */ +/* $OpenBSD: tmpfs_mem.c,v 1.5 2014/11/02 03:47:28 tedu Exp $ */ /* $NetBSD: tmpfs_mem.c,v 1.4 2011/05/24 01:09:47 rmind Exp $ */ /* @@ -218,7 +218,7 @@ tmpfs_strname_free(struct tmpfs_mount *mp, char *str, size_t len) KASSERT(sz > 0 && sz <= 1024); tmpfs_mem_decr(mp, sz); - free(str, M_TEMP, 0); + free(str, M_TEMP, sz); } int diff --git a/sys/tmpfs/tmpfs_vfsops.c b/sys/tmpfs/tmpfs_vfsops.c index 32ea53886df..b974a6dca60 100644 --- a/sys/tmpfs/tmpfs_vfsops.c +++ b/sys/tmpfs/tmpfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpfs_vfsops.c,v 1.4 2014/07/12 18:50:25 tedu Exp $ */ +/* $OpenBSD: tmpfs_vfsops.c,v 1.5 2014/11/02 03:47:28 tedu Exp $ */ /* $NetBSD: tmpfs_vfsops.c,v 1.52 2011/09/27 01:10:43 christos Exp $ */ /* @@ -255,7 +255,7 @@ tmpfs_unmount(struct mount *mp, int mntflags, struct proc *p) tmpfs_mntmem_destroy(tmp); /* mutex_destroy(&tmp->tm_lock); */ /* kmem_free(tmp, sizeof(*tmp)); */ - free(tmp, M_MISCFSMNT, 0); + free(tmp, M_MISCFSMNT, sizeof(tmpfs_mount_t)); mp->mnt_data = NULL; return 0; |