return;
} /* ll_truncate */
-int ll_direct_IO(int rw, struct inode *inode, struct kiobuf *iobuf,
- unsigned long blocknr, int blocksize)
+static int ll_direct_IO(int rw, struct inode *inode, struct kiobuf *iobuf,
+ unsigned long blocknr, int blocksize)
{
obd_count bufs_per_obdo = iobuf->nr_pages;
struct ll_inode_info *lli = ll_i2info(inode);
RETURN(rc);
}
-
int ll_flush_inode_pages(struct inode * inode)
{
obd_count bufs_per_obdo = 0;
RETURN(err);
}
-
-
struct address_space_operations ll_aops = {
readpage: ll_readpage,
writepage: ll_writepage,
ENTRY;
if (!md) {
- CERROR("LOV requires striping ea for destruction\n");
+ CERROR("LOV requires striping ea\n");
RETURN(-EINVAL);
}
ENTRY;
if (!md) {
- CERROR("LOV requires striping ea for desctruction\n");
+ CERROR("LOV requires striping ea\n");
RETURN(-EINVAL);
}
ENTRY;
if (!md) {
- CERROR("LOV requires striping ea for desctruction\n");
+ CERROR("LOV requires striping ea\n");
RETURN(-EINVAL);
}
if (!our_cb)
RETURN(-ENOMEM);
- OBD_ALLOC(stripeinfo, stripe_count * sizeof(*stripeinfo));
+ OBD_ALLOC(stripeinfo, stripe_count * sizeof(*stripeinfo));
if (!stripeinfo)
GOTO(out_cbdata, rc = -ENOMEM);
remove_proc_entry(obd_entry->name, obd_dir);
}
+ obd->obd_proc_entry = NULL;
}
void proc_lustre_release_obd_device(struct obd_device *obd)
(ev->type == PTL_EVENT_SENT) ? "SENT" :
(ev->type == PTL_EVENT_ACK) ? "ACK" : "UNEXPECTED", ev->type);
- LASSERT (ev->type == PTL_EVENT_SENT ||
- ev->type == PTL_EVENT_ACK);
+ LASSERT (ev->type == PTL_EVENT_SENT || ev->type == PTL_EVENT_ACK);
LASSERT (atomic_read (&desc->bd_source_callback_count) > 0 &&
atomic_read (&desc->bd_source_callback_count) <= 2);
-
- if (ev->mem_desc.niov != desc->bd_page_count)
- {
- int mdniov = ev->mem_desc.niov;
- struct ptlrpc_bulk_desc desc_snapshot;
-
- desc_snapshot = *desc;
-
- printk ("ev(%p)->mem_desc.niov %d != desc(%p)->bd_page_count %d, snapshot %p\n",
- ev, mdniov, desc, desc_snapshot.bd_page_count, &desc_snapshot);
- LBUG();
- }
+
/* 1 fragment for each page always */
LASSERT (ev->mem_desc.niov == desc->bd_page_count);
- if (atomic_dec_and_test (&desc->bd_source_callback_count))
- {
+ if (atomic_dec_and_test (&desc->bd_source_callback_count)) {
list_for_each_safe(tmp, next, &desc->bd_page_list) {
bulk = list_entry(tmp, struct ptlrpc_bulk_page,
bp_link);
-
+
if (bulk->bp_cb != NULL)
bulk->bp_cb(bulk);
}