of this came from socknal_lib-linux.c but was generalised a little so all
the NALs that use TCP/IP to do connection establishment can use it.
CAVEAT EMPTOR! Just the linux versions are done; the darwin versions are
not implemented yet.
Changed socknal and ranal to use this.
* Brought ranal up-to-date with new config + mod params for all tunables.
Ranal gets its local address from the IP of a (single) specified
interface, or the first "suitable" one found if no interface is specified.
#define __clear_page_ll_data(page) \
do { \
ClearPagePrivate(page); \
#define __clear_page_ll_data(page) \
do { \
ClearPagePrivate(page); \
- page_cache_release(page); \
+ page_cache_release(page); \
} while(0)
#define kiobuf bio
} while(0)
#define kiobuf bio
int rc;
int nob = strnlen (uuid, PAGE_SIZE) + 1;
int rc;
int nob = strnlen (uuid, PAGE_SIZE) + 1;
+ LASSERT(nid != 0); /* valid newconfig NID is never zero */
if (nob > PAGE_SIZE)
return -EINVAL;
if (nob > PAGE_SIZE)
return -EINVAL;
if (cmd == OBD_BRW_WRITE){
struct obd_async_page_ops *ops;
struct obdo *oa = NULL;
if (cmd == OBD_BRW_WRITE){
struct obd_async_page_ops *ops;
struct obdo *oa = NULL;
oa = obdo_alloc();
if (oa == NULL)
RETURN(-ENOMEM);
oa = obdo_alloc();
if (oa == NULL)
RETURN(-ENOMEM);