The patch titled Subject: ocfs2-add-ocfs2_overwrite_io-function-v3 has been removed from the -mm tree. Its filename was ocfs2-add-ocfs2_overwrite_io-function-v3.patch This patch was dropped because it was folded into ocfs2-add-ocfs2_overwrite_io-function.patch ------------------------------------------------------ From: Gang He <ghe@xxxxxxxx> Subject: ocfs2-add-ocfs2_overwrite_io-function-v3 Link: http://lkml.kernel.org/r/1514455665-16325-3-git-send-email-ghe@xxxxxxxx Signed-off-by: Gang He <ghe@xxxxxxxx> Cc: Changwei Ge <ge.changwei@xxxxxxx> Cc: Mark Fasheh <mfasheh@xxxxxxxxxxx> Cc: Joel Becker <jlbec@xxxxxxxxxxxx> Cc: Junxiao Bi <junxiao.bi@xxxxxxxxxx> Cc: Joseph Qi <jiangqi903@xxxxxxxxx> Cc: Jun Piao <piaojun@xxxxxxxxxx> Cc: alex chen <alex.chen@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/ocfs2/extent_map.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff -puN fs/ocfs2/extent_map.c~ocfs2-add-ocfs2_overwrite_io-function-v3 fs/ocfs2/extent_map.c --- a/fs/ocfs2/extent_map.c~ocfs2-add-ocfs2_overwrite_io-function-v3 +++ a/fs/ocfs2/extent_map.c @@ -38,6 +38,7 @@ #include "inode.h" #include "super.h" #include "symlink.h" +#include "aops.h" #include "ocfs2_trace.h" #include "buffer_head_io.h" @@ -841,9 +842,12 @@ int ocfs2_overwrite_io(struct inode *ino struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); struct ocfs2_extent_rec rec; - if ((OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) && - ((map_start + map_len) <= i_size_read(inode))) - goto out; + if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { + if (ocfs2_size_fits_inline_data(di_bh, map_start + map_len)) + return ret; + else + return -EAGAIN; + } cpos = map_start >> osb->s_clustersize_bits; mapping_end = ocfs2_clusters_for_bytes(inode->i_sb, _ Patches currently in -mm which might be from ghe@xxxxxxxx are ocfs2-give-an-obvious-tip-for-dismatch-cluster-names.patch ocfs2-try-a-blocking-lock-before-return-aop_truncated_page.patch ocfs2-add-trimfs-dlm-lock-resource.patch ocfs2-add-trimfs-lock-to-avoid-duplicated-trims-in-cluster.patch ocfs2-add-ocfs2_try_rw_lock-and-ocfs2_try_inode_lock.patch ocfs2-add-ocfs2_overwrite_io-function.patch ocfs2-nowait-aio-support.patch ocfs2-nowait-aio-support-v4.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