MFC of 332264, 332266, 332415:
Check for errors in libufs getino() and gracefully fail descriptor upgrade request in ufs_disk_write().