diff options
author | Rick Macklem <rmacklem@FreeBSD.org> | 2011-05-22 01:07:54 +0000 |
---|---|---|
committer | Rick Macklem <rmacklem@FreeBSD.org> | 2011-05-22 01:07:54 +0000 |
commit | 694a586a43ad15e65a6fe278af031e4ec18a3524 (patch) | |
tree | d4de50d8fbaaca75e31ae95cbc9c63c287ea95d9 /sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c | |
parent | 05a447d0b9b86ef8de263ef18da269f2c1e57f88 (diff) | |
download | src-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/gnu/fs/xfs/FreeBSD/xfs_mountops.c')
-rw-r--r-- | sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c b/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c index f89618e93d02..e9ccfc902761 100644 --- a/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c +++ b/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c @@ -370,9 +370,10 @@ _xfs_vget(mp, ino, flags, vpp) } static int -_xfs_fhtovp(mp, fidp, vpp) +_xfs_fhtovp(mp, fidp, flags, vpp) struct mount *mp; struct fid *fidp; + int flags; struct vnode **vpp; { printf("xfs_fhtovp\n"); |