diff options
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r-- | fs/ocfs2/file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index d71903c6068b..6fff128cad16 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c | |||
@@ -580,7 +580,7 @@ static int __ocfs2_extend_allocation(struct inode *inode, u32 logical_start, | |||
580 | int did_quota = 0; | 580 | int did_quota = 0; |
581 | 581 | ||
582 | /* | 582 | /* |
583 | * This function only exists for file systems which don't | 583 | * Unwritten extent only exists for file systems which |
584 | * support holes. | 584 | * support holes. |
585 | */ | 585 | */ |
586 | BUG_ON(mark_unwritten && !ocfs2_sparse_alloc(osb)); | 586 | BUG_ON(mark_unwritten && !ocfs2_sparse_alloc(osb)); |
@@ -603,8 +603,7 @@ restart_all: | |||
603 | goto leave; | 603 | goto leave; |
604 | } | 604 | } |
605 | 605 | ||
606 | credits = ocfs2_calc_extend_credits(osb->sb, &fe->id2.i_list, | 606 | credits = ocfs2_calc_extend_credits(osb->sb, &fe->id2.i_list); |
607 | clusters_to_add); | ||
608 | handle = ocfs2_start_trans(osb, credits); | 607 | handle = ocfs2_start_trans(osb, credits); |
609 | if (IS_ERR(handle)) { | 608 | if (IS_ERR(handle)) { |
610 | status = PTR_ERR(handle); | 609 | status = PTR_ERR(handle); |