rem: *_length = min(*_length, part_map->size - pos);
add: *_length = min_c(*_length, part_map->size - pos);
context: devfs_write(fs_volume _fs, fs_vnode _vnode, fs_cookie _cookie, off_t pos,	const void *buffer, size_t *_length){	struct devfs_vnode *vnode = (struct devfs_vnode *)_vnode;	struct devfs_cookie *cookie = (struct devfs_cookie *)_cookie;	TRACE(("devfs_write: vnode %p, cookie %p, pos %Ld, len %p\n", vnode, cookie, pos, _length));	if (vnode->stream.type == STREAM_TYPE_DEVICE) {		struct devfs_part_map *part_map = vnode->stream.u.dev.part_map;		int written;		if (part_map) {			if (pos < 0)				pos = 0;			if (pos > part_map->size)				return 0;			*_length = min(*_length, part_map->size - pos);			pos += part_map->offset;		}		written = vnode->stream.u.dev.ops->write(cookie->u.dev.dcookie, pos, buffer, _length);		return written;	}	return B_BAD_VALUE;}