diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-07-03 05:50:47 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-07-03 05:50:47 +0000 |
commit | 0a60b4bf4e5756b7bc2dd0d0f2b181df960760dc (patch) | |
tree | 5e482b2ac18b2b9078e91d9b699e960797b668a3 /sbin/disklabel | |
parent | 632f4c7802d445f4ab07f2ee185ee832501a5471 (diff) |
Instead of overwriting `f_data' replace the 'struct file' with a new one.
With this change `f_data' is effectively immutable.
While here prevent a lock ordering issue by not unterleaving the vnode's
lock and the fdplock().
Tested by bluhm@, ok kettenis@, visa@, jsing@
Diffstat (limited to 'sbin/disklabel')
0 files changed, 0 insertions, 0 deletions