Skip to content
Snippets Groups Projects
Commit f9919c68 authored by alex's avatar alex
Browse files

- debug info to investigate a source of small writes

parent ffd85c09
No related branches found
No related tags found
No related merge requests found
...@@ -862,6 +862,8 @@ static int ext3_ext_new_extent_cb(struct ext3_extents_tree *tree, ...@@ -862,6 +862,8 @@ static int ext3_ext_new_extent_cb(struct ext3_extents_tree *tree,
if (!pblock) if (!pblock)
goto out; goto out;
EXT_ASSERT(count <= cex->ec_len); EXT_ASSERT(count <= cex->ec_len);
if (count < cex->ec_len)
CDEBUG(D_ERROR, "%d < %lu\n", count, cex->ec_len);
/* insert new extent */ /* insert new extent */
nex.ee_block = cex->ec_block; nex.ee_block = cex->ec_block;
......
...@@ -233,7 +233,7 @@ int filter_do_bio(struct obd_device *obd, struct inode *inode, ...@@ -233,7 +233,7 @@ int filter_do_bio(struct obd_device *obd, struct inode *inode,
request_queue_t *q = bdev_get_queue(bio->bi_bdev); request_queue_t *q = bdev_get_queue(bio->bi_bdev);
/* Dang! I have to fragment this I/O */ /* Dang! I have to fragment this I/O */
CDEBUG(D_INODE, "bio++ sz %d vcnt %d(%d) " CDEBUG(D_INODE|D_ERROR, "bio++ sz %d vcnt %d(%d) "
"sectors %d(%d) psg %d(%d) hsg %d(%d)\n", "sectors %d(%d) psg %d(%d) hsg %d(%d)\n",
bio->bi_size, bio->bi_size,
bio->bi_vcnt, bio->bi_max_vecs, bio->bi_vcnt, bio->bi_max_vecs,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment