aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ialloc.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-03-05 16:20:53 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-05 16:20:53 -0500
commite213e26ab3988c516c06eba4dcd030ac052f6dc9 (patch)
tree6e26fbdbb842b387697d73daf6e70cf718269a77 /fs/ext4/ialloc.c
parentc812a51d11bbe983f4c24e32b59b265705ddd3c2 (diff)
parentefd8f0e6f6c1faa041f228d7113bd3a9db802d49 (diff)
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6: (33 commits) quota: stop using QUOTA_OK / NO_QUOTA dquot: cleanup dquot initialize routine dquot: move dquot initialization responsibility into the filesystem dquot: cleanup dquot drop routine dquot: move dquot drop responsibility into the filesystem dquot: cleanup dquot transfer routine dquot: move dquot transfer responsibility into the filesystem dquot: cleanup inode allocation / freeing routines dquot: cleanup space allocation / freeing routines ext3: add writepage sanity checks ext3: Truncate allocated blocks if direct IO write fails to update i_size quota: Properly invalidate caches even for filesystems with blocksize < pagesize quota: generalize quota transfer interface quota: sb_quota state flags cleanup jbd: Delay discarding buffers in journal_unmap_buffer ext3: quota_write cross block boundary behaviour quota: drop permission checks from xfs_fs_set_xstate/xfs_fs_set_xquota quota: split out compat_sys_quotactl support from quota.c quota: split out netlink notification support from quota.c quota: remove invalid optimization from quota_sync_all ... Fixed trivial conflicts in fs/namei.c and fs/ufs/inode.c
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r--fs/ext4/ialloc.c16
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
1071fail_free_drop: 1071fail_free_drop:
1072 vfs_dq_free_inode(inode); 1072 dquot_free_inode(inode);
1073 1073
1074fail_drop: 1074fail_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);