diff options
author | kib <kib@FreeBSD.org> | 2017-01-13 12:38:25 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2017-01-13 12:38:25 +0000 |
commit | 2eaa0f81174966046fba99f19c1f0563fe8ccd78 (patch) | |
tree | ea79090e80681e42ff75ca6afdc57f660808aa39 /sys/fs/tmpfs/tmpfs.h | |
parent | 97cc8fe7187504cc7c43ea2ed2bf35e5a729ddc5 (diff) | |
download | FreeBSD-src-2eaa0f81174966046fba99f19c1f0563fe8ccd78.zip FreeBSD-src-2eaa0f81174966046fba99f19c1f0563fe8ccd78.tar.gz |
MFC r311525:
Lock tmpfs node tn_status updates done under the shared vnode lock.
Diffstat (limited to 'sys/fs/tmpfs/tmpfs.h')
-rw-r--r-- | sys/fs/tmpfs/tmpfs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/fs/tmpfs/tmpfs.h b/sys/fs/tmpfs/tmpfs.h index b077489..cf1e3fa 100644 --- a/sys/fs/tmpfs/tmpfs.h +++ b/sys/fs/tmpfs/tmpfs.h @@ -199,7 +199,9 @@ struct tmpfs_node { * allocated for it or it has been reclaimed). */ struct vnode * tn_vnode; - /* interlock to protect tn_vpstate */ + /* Interlock to protect tn_vpstate, and tn_status under shared + * vnode lock. + */ struct mtx tn_interlock; /* Identify if current node has vnode assiocate with @@ -420,6 +422,7 @@ int tmpfs_chtimes(struct vnode *, struct vattr *, struct ucred *cred, void tmpfs_itimes(struct vnode *, const struct timespec *, const struct timespec *); +void tmpfs_set_status(struct tmpfs_node *node, int status); void tmpfs_update(struct vnode *); int tmpfs_truncate(struct vnode *, off_t); |