|
@@ -3692,6 +3692,9 @@ int ocfs2_add_refcount_flag(struct inode *inode,
|
|
struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
|
|
struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
|
|
struct ocfs2_alloc_context *meta_ac = NULL;
|
|
struct ocfs2_alloc_context *meta_ac = NULL;
|
|
|
|
|
|
|
|
+ /* We need to be able to handle at least an extent tree split. */
|
|
|
|
+ ref_blocks = ocfs2_extend_meta_needed(data_et->et_root_el);
|
|
|
|
+
|
|
ret = ocfs2_calc_refcount_meta_credits(inode->i_sb,
|
|
ret = ocfs2_calc_refcount_meta_credits(inode->i_sb,
|
|
ref_ci, ref_root_bh,
|
|
ref_ci, ref_root_bh,
|
|
p_cluster, num_clusters,
|
|
p_cluster, num_clusters,
|