diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2021-01-05 18:53:45 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-01-10 02:48:29 +0000 |
| commit | 9f200bc47b5d8445d91d51f6dfd6af0f1fbbe354 (patch) | |
| tree | e6102d39ee1f519652b5ba6c2ac225af82041063 /sys/fs/tmpfs | |
| parent | 42bebbda9ed13d12d0454b676aa81f34b39e496f (diff) | |
Diffstat (limited to 'sys/fs/tmpfs')
| -rw-r--r-- | sys/fs/tmpfs/tmpfs_vfsops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c index 125c5bb64120..ba7c654d4f0a 100644 --- a/sys/fs/tmpfs/tmpfs_vfsops.c +++ b/sys/fs/tmpfs/tmpfs_vfsops.c @@ -544,8 +544,9 @@ tmpfs_unmount(struct mount *mp, int mntflags) void tmpfs_free_tmp(struct tmpfs_mount *tmp) { - + TMPFS_MP_ASSERT_LOCKED(tmp); MPASS(tmp->tm_refcount > 0); + tmp->tm_refcount--; if (tmp->tm_refcount > 0) { TMPFS_UNLOCK(tmp); |
