|
@@ -148,8 +148,15 @@ int nilfs_gccache_submit_read_node(struct inode *inode, sector_t pbn,
|
|
|
int nilfs_gccache_wait_and_mark_dirty(struct buffer_head *bh)
|
|
|
{
|
|
|
wait_on_buffer(bh);
|
|
|
- if (!buffer_uptodate(bh))
|
|
|
+ if (!buffer_uptodate(bh)) {
|
|
|
+ struct inode *inode = bh->b_page->mapping->host;
|
|
|
+
|
|
|
+ nilfs_msg(inode->i_sb, KERN_ERR,
|
|
|
+ "I/O error reading %s block for GC (ino=%lu, vblocknr=%llu)",
|
|
|
+ buffer_nilfs_node(bh) ? "node" : "data",
|
|
|
+ inode->i_ino, (unsigned long long)bh->b_blocknr);
|
|
|
return -EIO;
|
|
|
+ }
|
|
|
if (buffer_dirty(bh))
|
|
|
return -EEXIST;
|
|
|
|