diff --git a/fs/ocfs2/dir.c b/fs/ocfs2/dir.c index e71160cda1100a1d5b9c840fbbbe784058a682fe..07d89204f0d33d8c4078ac4ec458e26768e2eba8 100644 --- a/fs/ocfs2/dir.c +++ b/fs/ocfs2/dir.c @@ -2934,7 +2934,7 @@ static int ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh, */ BUG_ON(alloc > 2); - ret = ocfs2_reserve_clusters(osb, alloc, &data_ac); + ret = ocfs2_reserve_clusters(osb, alloc + dx_alloc, &data_ac); if (ret) { mlog_errno(ret); goto out;