diff options
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r-- | fs/ext4/ialloc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index 004c9da9e5c6..361c0b9962a8 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c | |||
@@ -214,10 +214,10 @@ void ext4_free_inode(handle_t *handle, struct inode *inode) | |||
214 | * Note: we must free any quota before locking the superblock, | 214 | * Note: we must free any quota before locking the superblock, |
215 | * as writing the quota to disk may need the lock as well. | 215 | * as writing the quota to disk may need the lock as well. |
216 | */ | 216 | */ |
217 | vfs_dq_init(inode); | 217 | dquot_initialize(inode); |
218 | ext4_xattr_delete_inode(handle, inode); | 218 | ext4_xattr_delete_inode(handle, inode); |
219 | vfs_dq_free_inode(inode); | 219 | dquot_free_inode(inode); |
220 | vfs_dq_drop(inode); | 220 | dquot_drop(inode); |
221 | 221 | ||
222 | is_directory = S_ISDIR(inode->i_mode); | 222 | is_directory = S_ISDIR(inode->i_mode); |
223 | 223 | ||
@@ -1029,10 +1029,10 @@ got: | |||
1029 | ei->i_extra_isize = EXT4_SB(sb)->s_want_extra_isize; | 1029 | ei->i_extra_isize = EXT4_SB(sb)->s_want_extra_isize; |
1030 | 1030 | ||
1031 | ret = inode; | 1031 | ret = inode; |
1032 | if (vfs_dq_alloc_inode(inode)) { | 1032 | dquot_initialize(inode); |
1033 | err = -EDQUOT; | 1033 | err = dquot_alloc_inode(inode); |
1034 | if (err) | ||
1034 | goto fail_drop; | 1035 | goto fail_drop; |
1035 | } | ||
1036 | 1036 | ||
1037 | err = ext4_init_acl(handle, inode, dir); | 1037 | err = ext4_init_acl(handle, inode, dir); |
1038 | if (err) | 1038 | if (err) |
@@ -1069,10 +1069,10 @@ really_out: | |||
1069 | return ret; | 1069 | return ret; |
1070 | 1070 | ||
1071 | fail_free_drop: | 1071 | fail_free_drop: |
1072 | vfs_dq_free_inode(inode); | 1072 | dquot_free_inode(inode); |
1073 | 1073 | ||
1074 | fail_drop: | 1074 | fail_drop: |
1075 | vfs_dq_drop(inode); | 1075 | dquot_drop(inode); |
1076 | inode->i_flags |= S_NOQUOTA; | 1076 | inode->i_flags |= S_NOQUOTA; |
1077 | inode->i_nlink = 0; | 1077 | inode->i_nlink = 0; |
1078 | unlock_new_inode(inode); | 1078 | unlock_new_inode(inode); |