aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ops_address.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/ops_address.c')
-rw-r--r--fs/gfs2/ops_address.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c
index e72fd47d71eb..90a04a6e3789 100644
--- a/fs/gfs2/ops_address.c
+++ b/fs/gfs2/ops_address.c
@@ -653,14 +653,10 @@ static int gfs2_write_begin(struct file *file, struct address_space *mapping,
653 goto out_unlock; 653 goto out_unlock;
654 } 654 }
655 655
656 error = gfs2_quota_lock(ip, NO_QUOTA_CHANGE, NO_QUOTA_CHANGE); 656 error = gfs2_quota_lock_check(ip);
657 if (error) 657 if (error)
658 goto out_alloc_put; 658 goto out_alloc_put;
659 659
660 error = gfs2_quota_check(ip, ip->i_inode.i_uid, ip->i_inode.i_gid);
661 if (error)
662 goto out_qunlock;
663
664 al->al_requested = data_blocks + ind_blocks; 660 al->al_requested = data_blocks + ind_blocks;
665 error = gfs2_inplace_reserve(ip); 661 error = gfs2_inplace_reserve(ip);
666 if (error) 662 if (error)