diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2009-03-18 21:51:02 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2009-03-18 21:51:02 +0000 |
| commit | 3d2672abd14ce268b457d4d32cdad4c710de2330 (patch) | |
| tree | c53935e98903257c7ea7043d3b69de1e96a0a9d0 /sys/compat/linux | |
| parent | dd38f46724efcdb9cc07c5bb98c6aa0c3e2a6b04 (diff) | |
Notes
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/linux_file.c | 2 | ||||
| -rw-r--r-- | sys/compat/linux/linux_getcwd.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 522ffb0f7f31..f0789a561fca 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -465,7 +465,7 @@ getdents_common(struct thread *td, struct linux_getdents64_args *args, buflen = min(buflen, MAXBSIZE); buf = malloc(buflen, M_TEMP, M_WAITOK); lbuf = malloc(LINUX_MAXRECLEN, M_TEMP, M_WAITOK | M_ZERO); - vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); + vn_lock(vp, LK_SHARED | LK_RETRY, td); again: aiov.iov_base = buf; diff --git a/sys/compat/linux/linux_getcwd.c b/sys/compat/linux/linux_getcwd.c index c244e5088abd..4c987a66b240 100644 --- a/sys/compat/linux/linux_getcwd.c +++ b/sys/compat/linux/linux_getcwd.c @@ -163,7 +163,7 @@ linux_getcwd_scandir(lvpp, uvpp, bpp, bufp, td) cn.cn_nameptr = ".."; cn.cn_namelen = 2; cn.cn_consume = 0; - cn.cn_lkflags = LK_EXCLUSIVE; + cn.cn_lkflags = LK_SHARED; /* * At this point, lvp is locked and will be unlocked by the lookup. |
