[PATCH v4 2/3] ocfs2: add ocfs2_overwrite_io function

2018-01-15 Thread Gang He
Add ocfs2_overwrite_io function, which is used to judge if overwrite allocated blocks, otherwise, the write will bring extra block allocation overhead. Reviewed-by: Alex Chen Signed-off-by: Gang He --- fs/ocfs2/extent_map.c | 45

[PATCH v4 2/3] ocfs2: add ocfs2_overwrite_io function

2018-01-15 Thread Gang He
Add ocfs2_overwrite_io function, which is used to judge if overwrite allocated blocks, otherwise, the write will bring extra block allocation overhead. Reviewed-by: Alex Chen Signed-off-by: Gang He --- fs/ocfs2/extent_map.c | 45 +