From 9375f1d524ba0f970fba08b6798c72309e07c4be Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 11 Apr 2005 11:16:29 +0000 Subject: - Honor the flags argument passed to null_root(). The filesystem below us will decide whether or not to grab a real shared lock. --- sys/fs/nullfs/null_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/nullfs') diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c index 56b826c..38f0f55 100644 --- a/sys/fs/nullfs/null_vfsops.c +++ b/sys/fs/nullfs/null_vfsops.c @@ -248,7 +248,7 @@ nullfs_root(mp, flags, vpp, td) return (EDEADLK); } #endif - vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); + vn_lock(vp, flags | LK_RETRY, td); *vpp = vp; return 0; } -- cgit v1.1