diff options
Diffstat (limited to 'fs/ocfs2/buffer_head_io.c')
| -rw-r--r-- | fs/ocfs2/buffer_head_io.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ocfs2/buffer_head_io.c b/fs/ocfs2/buffer_head_io.c index 5d18ad10c27..1edcb141f63 100644 --- a/fs/ocfs2/buffer_head_io.c +++ b/fs/ocfs2/buffer_head_io.c @@ -90,7 +90,6 @@ int ocfs2_write_block(struct ocfs2_super *osb, struct buffer_head *bh,  		 * information for this bh as it's not marked locally  		 * uptodate. */  		ret = -EIO; -		put_bh(bh);  		mlog_errno(ret);  	} @@ -115,7 +114,7 @@ int ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block,  		if (bhs[i] == NULL) {  			bhs[i] = sb_getblk(osb->sb, block++);  			if (bhs[i] == NULL) { -				status = -EIO; +				status = -ENOMEM;  				mlog_errno(status);  				goto bail;  			} @@ -214,7 +213,7 @@ int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr,  			bhs[i] = sb_getblk(sb, block++);  			if (bhs[i] == NULL) {  				ocfs2_metadata_cache_io_unlock(ci); -				status = -EIO; +				status = -ENOMEM;  				mlog_errno(status);  				goto bail;  			} @@ -420,7 +419,6 @@ int ocfs2_write_super_or_backup(struct ocfs2_super *osb,  	if (!buffer_uptodate(bh)) {  		ret = -EIO; -		put_bh(bh);  		mlog_errno(ret);  	}  | 
