Rick Macklem b4c9955e41 Lock the vnode before calling ufs_bmap_seekdata().
r346932 replaced a call to vn_bmap_seekhole() with a call to
ufs_bmap_seekdata(). Although vn_bmap_seekhole() locks the vnode,
ufs_bmap_seekdata() assumes it is already locked.
This patch adds locking of the vnode before the ufs_bmap_seekdata() call.
If the vn_lock() call fails, it returns EBADF since that is the normal
error returned when a file system is forced dismounted and is already
listed as an error return in the lseek(2) man page.

Discussed with:	markj
Reviewed by:	kib
2019-07-27 01:52:34 +00:00
..
2019-07-22 21:55:33 +00:00
2019-07-17 16:38:29 +00:00
2019-07-10 13:47:10 +00:00
2019-05-27 00:47:51 +00:00
2019-06-22 05:35:23 +00:00
2019-05-08 19:27:30 +00:00
2019-07-22 16:01:20 +00:00
2019-07-24 21:26:17 +00:00
2019-07-25 22:23:34 +00:00
2019-07-24 16:51:14 +00:00
2019-06-08 16:26:56 +00:00
2019-07-14 21:08:54 +00:00