diff options
Diffstat (limited to 'fs/ocfs2/namei.c')
-rw-r--r-- | fs/ocfs2/namei.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c index 50fb26a6a5f5..13adaa1f40cd 100644 --- a/fs/ocfs2/namei.c +++ b/fs/ocfs2/namei.c | |||
@@ -1716,11 +1716,10 @@ static int ocfs2_symlink(struct inode *dir, | |||
1716 | u32 offset = 0; | 1716 | u32 offset = 0; |
1717 | 1717 | ||
1718 | inode->i_op = &ocfs2_symlink_inode_operations; | 1718 | inode->i_op = &ocfs2_symlink_inode_operations; |
1719 | if (vfs_dq_alloc_space_nodirty(inode, | 1719 | status = dquot_alloc_space_nodirty(inode, |
1720 | ocfs2_clusters_to_bytes(osb->sb, 1))) { | 1720 | ocfs2_clusters_to_bytes(osb->sb, 1)); |
1721 | status = -EDQUOT; | 1721 | if (status) |
1722 | goto bail; | 1722 | goto bail; |
1723 | } | ||
1724 | did_quota = 1; | 1723 | did_quota = 1; |
1725 | status = ocfs2_add_inode_data(osb, inode, &offset, 1, 0, | 1724 | status = ocfs2_add_inode_data(osb, inode, &offset, 1, 0, |
1726 | new_fe_bh, | 1725 | new_fe_bh, |
@@ -1788,7 +1787,7 @@ static int ocfs2_symlink(struct inode *dir, | |||
1788 | d_instantiate(dentry, inode); | 1787 | d_instantiate(dentry, inode); |
1789 | bail: | 1788 | bail: |
1790 | if (status < 0 && did_quota) | 1789 | if (status < 0 && did_quota) |
1791 | vfs_dq_free_space_nodirty(inode, | 1790 | dquot_free_space_nodirty(inode, |
1792 | ocfs2_clusters_to_bytes(osb->sb, 1)); | 1791 | ocfs2_clusters_to_bytes(osb->sb, 1)); |
1793 | if (status < 0 && did_quota_inode) | 1792 | if (status < 0 && did_quota_inode) |
1794 | vfs_dq_free_inode(inode); | 1793 | vfs_dq_free_inode(inode); |