diff options
Diffstat (limited to 'fs/gfs2/aops.c')
-rw-r--r-- | fs/gfs2/aops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index 1f7d8057ea68..b7fc035a6943 100644 --- a/fs/gfs2/aops.c +++ b/fs/gfs2/aops.c | |||
@@ -611,12 +611,14 @@ static int gfs2_write_begin(struct file *file, struct address_space *mapping, | |||
611 | gfs2_write_calc_reserv(ip, len, &data_blocks, &ind_blocks); | 611 | gfs2_write_calc_reserv(ip, len, &data_blocks, &ind_blocks); |
612 | 612 | ||
613 | if (alloc_required) { | 613 | if (alloc_required) { |
614 | struct gfs2_alloc_parms ap = { .aflags = 0, }; | ||
614 | error = gfs2_quota_lock_check(ip); | 615 | error = gfs2_quota_lock_check(ip); |
615 | if (error) | 616 | if (error) |
616 | goto out_unlock; | 617 | goto out_unlock; |
617 | 618 | ||
618 | requested = data_blocks + ind_blocks; | 619 | requested = data_blocks + ind_blocks; |
619 | error = gfs2_inplace_reserve(ip, requested, 0); | 620 | ap.target = requested; |
621 | error = gfs2_inplace_reserve(ip, &ap); | ||
620 | if (error) | 622 | if (error) |
621 | goto out_qunlock; | 623 | goto out_qunlock; |
622 | } | 624 | } |