aboutsummaryrefslogtreecommitdiff
path: root/sys/ufs/ufs/ufs_extern.h
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2011-05-22 01:07:54 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2011-05-22 01:07:54 +0000
commit694a586a43ad15e65a6fe278af031e4ec18a3524 (patch)
treed4de50d8fbaaca75e31ae95cbc9c63c287ea95d9 /sys/ufs/ufs/ufs_extern.h
parent05a447d0b9b86ef8de263ef18da269f2c1e57f88 (diff)
downloadsrc-694a586a43ad15e65a6fe278af031e4ec18a3524.tar.gz
src-694a586a43ad15e65a6fe278af031e4ec18a3524.zip
Add a lock flags argument to the VFS_FHTOVP() file system
method, so that callers can indicate the minimum vnode locking requirement. This will allow some file systems to choose to return a LK_SHARED locked vnode when LK_SHARED is specified for the flags argument. This patch only adds the flag. It does not change any file system to use it and all callers specify LK_EXCLUSIVE, so file system semantics are not changed. Reviewed by: kib
Notes
Notes: svn path=/head/; revision=222167
Diffstat (limited to 'sys/ufs/ufs/ufs_extern.h')
-rw-r--r--sys/ufs/ufs/ufs_extern.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_extern.h b/sys/ufs/ufs/ufs_extern.h
index 528b03bc5f28..c590748f7ff0 100644
--- a/sys/ufs/ufs/ufs_extern.h
+++ b/sys/ufs/ufs/ufs_extern.h
@@ -56,7 +56,7 @@ extern struct vop_vector ufs_vnodeops;
int ufs_bmap(struct vop_bmap_args *);
int ufs_bmaparray(struct vnode *, ufs2_daddr_t, ufs2_daddr_t *,
struct buf *, int *, int *);
-int ufs_fhtovp(struct mount *, struct ufid *, struct vnode **);
+int ufs_fhtovp(struct mount *, struct ufid *, int, struct vnode **);
int ufs_checkpath(ino_t, ino_t, struct inode *, struct ucred *, ino_t *);
void ufs_dirbad(struct inode *, doff_t, char *);
int ufs_dirbadentry(struct vnode *, struct direct *, int);