summaryrefslogtreecommitdiffstats
path: root/sys/fs/tmpfs/tmpfs.h
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-08-10 05:24:49 +0000
committerdelphij <delphij@FreeBSD.org>2007-08-10 05:24:49 +0000
commit1e2d5f7f4ae5c6c278371f5d357ee949df152bcc (patch)
tree3c511dcb1596e97903bfbb7bc035dbea359cc6ea /sys/fs/tmpfs/tmpfs.h
parentb6abc7d242e6b81169bb513bdf42663b15f6cc98 (diff)
downloadFreeBSD-src-1e2d5f7f4ae5c6c278371f5d357ee949df152bcc.zip
FreeBSD-src-1e2d5f7f4ae5c6c278371f5d357ee949df152bcc.tar.gz
MFp4:
- Respect cnflag and don't lock vnode always as LK_EXCLUSIVE [1] - Properly lock around tn_vnode to avoid NULL deference - Be more careful handling vnodes (*) (*) This is a WIP [1] by pjd via howardsu Thanks kib@ for his valuable VFS related comments. Tested with: fsx, fstest, tmpfs regression test set Found by: pho's stress2 suite Approved by: re (tmpfs blanket)
Diffstat (limited to 'sys/fs/tmpfs/tmpfs.h')
-rw-r--r--sys/fs/tmpfs/tmpfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/tmpfs/tmpfs.h b/sys/fs/tmpfs/tmpfs.h
index f681e32..c57eb25 100644
--- a/sys/fs/tmpfs/tmpfs.h
+++ b/sys/fs/tmpfs/tmpfs.h
@@ -353,8 +353,8 @@ int tmpfs_alloc_dirent(struct tmpfs_mount *, struct tmpfs_node *,
const char *, uint16_t, struct tmpfs_dirent **);
void tmpfs_free_dirent(struct tmpfs_mount *, struct tmpfs_dirent *,
boolean_t);
-int tmpfs_alloc_vp(struct mount *, struct tmpfs_node *, struct vnode **,
- struct thread *td);
+int tmpfs_alloc_vp(struct mount *, struct tmpfs_node *, int,
+ struct vnode **, struct thread *);
void tmpfs_free_vp(struct vnode *);
int tmpfs_alloc_file(struct vnode *, struct vnode **, struct vattr *,
struct componentname *, char *);
OpenPOWER on IntegriCloud