Subject: [folded-merged] ocfs2-return-enomem-when-sb_getblk-fails-update.patch removed from -mm tree To: joseph.qi@xxxxxxxxxx,jeff.liu@xxxxxxxxxx,jlbec@xxxxxxxxxxxx,mfasheh@xxxxxxxx,rui.xiang@xxxxxxxxxx,mm-commits@xxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Tue, 12 Nov 2013 14:31:06 -0800 The patch titled Subject: ocfs2-return-enomem-when-sb_getblk-fails-update has been removed from the -mm tree. Its filename was ocfs2-return-enomem-when-sb_getblk-fails-update.patch This patch was dropped because it was folded into ocfs2-return-enomem-when-sb_getblk-fails.patch ------------------------------------------------------ From: Joseph Qi <joseph.qi@xxxxxxxxxx> Subject: ocfs2-return-enomem-when-sb_getblk-fails-update ocfs2_symlink_get_block in aops.c, and ocfs2_read_blocks_sync and ocfs2_read_blocks in buffer_head_io.c need do the same change for consistency. Cc: Rui Xiang <rui.xiang@xxxxxxxxxx> Cc: Jie Liu <jeff.liu@xxxxxxxxxx> Cc: Mark Fasheh <mfasheh@xxxxxxxx> Cc: Joel Becker <jlbec@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/ocfs2/aops.c | 1 + fs/ocfs2/buffer_head_io.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff -puN fs/ocfs2/aops.c~ocfs2-return-enomem-when-sb_getblk-fails-update fs/ocfs2/aops.c --- a/fs/ocfs2/aops.c~ocfs2-return-enomem-when-sb_getblk-fails-update +++ a/fs/ocfs2/aops.c @@ -93,6 +93,7 @@ static int ocfs2_symlink_get_block(struc iblock; buffer_cache_bh = sb_getblk(osb->sb, blkno); if (!buffer_cache_bh) { + err = -ENOMEM; mlog(ML_ERROR, "couldn't getblock for symlink!\n"); goto bail; } diff -puN fs/ocfs2/buffer_head_io.c~ocfs2-return-enomem-when-sb_getblk-fails-update fs/ocfs2/buffer_head_io.c --- a/fs/ocfs2/buffer_head_io.c~ocfs2-return-enomem-when-sb_getblk-fails-update +++ a/fs/ocfs2/buffer_head_io.c @@ -115,7 +115,7 @@ int ocfs2_read_blocks_sync(struct ocfs2_ 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 +214,7 @@ int ocfs2_read_blocks(struct ocfs2_cachi 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; } _ Patches currently in -mm which might be from joseph.qi@xxxxxxxxxx are ocfs2-return-enomem-when-sb_getblk-fails.patch ocfs2-add-necessary-check-in-case-sb_getblk-fails-update.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html