Browse Source

ext3: Use lowercase names of quota functions

Use lowercase names of quota functions instead of old uppercase ones.

Signed-off-by: Jan Kara <jack@suse.cz>
CC: linux-ext4@vger.kernel.org
Jan Kara 16 years ago
parent
commit
81a0522739
6 changed files with 21 additions and 21 deletions
  1. 4 4
      fs/ext3/balloc.c
  2. 6 6
      fs/ext3/ialloc.c
  3. 3 3
      fs/ext3/inode.c
  4. 3 3
      fs/ext3/namei.c
  5. 2 2
      fs/ext3/super.c
  6. 3 3
      fs/ext3/xattr.c

+ 4 - 4
fs/ext3/balloc.c

@@ -676,7 +676,7 @@ void ext3_free_blocks(handle_t *handle, struct inode *inode,
 	}
 	}
 	ext3_free_blocks_sb(handle, sb, block, count, &dquot_freed_blocks);
 	ext3_free_blocks_sb(handle, sb, block, count, &dquot_freed_blocks);
 	if (dquot_freed_blocks)
 	if (dquot_freed_blocks)
-		DQUOT_FREE_BLOCK(inode, dquot_freed_blocks);
+		vfs_dq_free_block(inode, dquot_freed_blocks);
 	return;
 	return;
 }
 }
 
 
@@ -1502,7 +1502,7 @@ ext3_fsblk_t ext3_new_blocks(handle_t *handle, struct inode *inode,
 	/*
 	/*
 	 * Check quota for allocation of this block.
 	 * Check quota for allocation of this block.
 	 */
 	 */
-	if (DQUOT_ALLOC_BLOCK(inode, num)) {
+	if (vfs_dq_alloc_block(inode, num)) {
 		*errp = -EDQUOT;
 		*errp = -EDQUOT;
 		return 0;
 		return 0;
 	}
 	}
@@ -1714,7 +1714,7 @@ allocated:
 
 
 	*errp = 0;
 	*errp = 0;
 	brelse(bitmap_bh);
 	brelse(bitmap_bh);
-	DQUOT_FREE_BLOCK(inode, *count-num);
+	vfs_dq_free_block(inode, *count-num);
 	*count = num;
 	*count = num;
 	return ret_block;
 	return ret_block;
 
 
@@ -1729,7 +1729,7 @@ out:
 	 * Undo the block allocation
 	 * Undo the block allocation
 	 */
 	 */
 	if (!performed_allocation)
 	if (!performed_allocation)
-		DQUOT_FREE_BLOCK(inode, *count);
+		vfs_dq_free_block(inode, *count);
 	brelse(bitmap_bh);
 	brelse(bitmap_bh);
 	return 0;
 	return 0;
 }
 }

+ 6 - 6
fs/ext3/ialloc.c

@@ -123,10 +123,10 @@ void ext3_free_inode (handle_t *handle, struct inode * inode)
 	 * Note: we must free any quota before locking the superblock,
 	 * Note: we must free any quota before locking the superblock,
 	 * as writing the quota to disk may need the lock as well.
 	 * as writing the quota to disk may need the lock as well.
 	 */
 	 */
-	DQUOT_INIT(inode);
+	vfs_dq_init(inode);
 	ext3_xattr_delete_inode(handle, inode);
 	ext3_xattr_delete_inode(handle, inode);
-	DQUOT_FREE_INODE(inode);
-	DQUOT_DROP(inode);
+	vfs_dq_free_inode(inode);
+	vfs_dq_drop(inode);
 
 
 	is_directory = S_ISDIR(inode->i_mode);
 	is_directory = S_ISDIR(inode->i_mode);
 
 
@@ -589,7 +589,7 @@ got:
 		sizeof(struct ext3_inode) - EXT3_GOOD_OLD_INODE_SIZE : 0;
 		sizeof(struct ext3_inode) - EXT3_GOOD_OLD_INODE_SIZE : 0;
 
 
 	ret = inode;
 	ret = inode;
-	if(DQUOT_ALLOC_INODE(inode)) {
+	if (vfs_dq_alloc_inode(inode)) {
 		err = -EDQUOT;
 		err = -EDQUOT;
 		goto fail_drop;
 		goto fail_drop;
 	}
 	}
@@ -620,10 +620,10 @@ really_out:
 	return ret;
 	return ret;
 
 
 fail_free_drop:
 fail_free_drop:
-	DQUOT_FREE_INODE(inode);
+	vfs_dq_free_inode(inode);
 
 
 fail_drop:
 fail_drop:
-	DQUOT_DROP(inode);
+	vfs_dq_drop(inode);
 	inode->i_flags |= S_NOQUOTA;
 	inode->i_flags |= S_NOQUOTA;
 	inode->i_nlink = 0;
 	inode->i_nlink = 0;
 	unlock_new_inode(inode);
 	unlock_new_inode(inode);

+ 3 - 3
fs/ext3/inode.c

@@ -3055,7 +3055,7 @@ int ext3_setattr(struct dentry *dentry, struct iattr *attr)
 			error = PTR_ERR(handle);
 			error = PTR_ERR(handle);
 			goto err_out;
 			goto err_out;
 		}
 		}
-		error = DQUOT_TRANSFER(inode, attr) ? -EDQUOT : 0;
+		error = vfs_dq_transfer(inode, attr) ? -EDQUOT : 0;
 		if (error) {
 		if (error) {
 			ext3_journal_stop(handle);
 			ext3_journal_stop(handle);
 			return error;
 			return error;
@@ -3146,7 +3146,7 @@ static int ext3_writepage_trans_blocks(struct inode *inode)
 		ret = 2 * (bpp + indirects) + 2;
 		ret = 2 * (bpp + indirects) + 2;
 
 
 #ifdef CONFIG_QUOTA
 #ifdef CONFIG_QUOTA
-	/* We know that structure was already allocated during DQUOT_INIT so
+	/* We know that structure was already allocated during vfs_dq_init so
 	 * we will be updating only the data blocks + inodes */
 	 * we will be updating only the data blocks + inodes */
 	ret += 2*EXT3_QUOTA_TRANS_BLOCKS(inode->i_sb);
 	ret += 2*EXT3_QUOTA_TRANS_BLOCKS(inode->i_sb);
 #endif
 #endif
@@ -3237,7 +3237,7 @@ int ext3_mark_inode_dirty(handle_t *handle, struct inode *inode)
  * i_size has been changed by generic_commit_write() and we thus need
  * i_size has been changed by generic_commit_write() and we thus need
  * to include the updated inode in the current transaction.
  * to include the updated inode in the current transaction.
  *
  *
- * Also, DQUOT_ALLOC_SPACE() will always dirty the inode when blocks
+ * Also, vfs_dq_alloc_space() will always dirty the inode when blocks
  * are allocated to the file.
  * are allocated to the file.
  *
  *
  * If the inode is marked synchronous, we don't honour that here - doing
  * If the inode is marked synchronous, we don't honour that here - doing

+ 3 - 3
fs/ext3/namei.c

@@ -2049,7 +2049,7 @@ static int ext3_rmdir (struct inode * dir, struct dentry *dentry)
 
 
 	/* Initialize quotas before so that eventual writes go in
 	/* Initialize quotas before so that eventual writes go in
 	 * separate transaction */
 	 * separate transaction */
-	DQUOT_INIT(dentry->d_inode);
+	vfs_dq_init(dentry->d_inode);
 	handle = ext3_journal_start(dir, EXT3_DELETE_TRANS_BLOCKS(dir->i_sb));
 	handle = ext3_journal_start(dir, EXT3_DELETE_TRANS_BLOCKS(dir->i_sb));
 	if (IS_ERR(handle))
 	if (IS_ERR(handle))
 		return PTR_ERR(handle);
 		return PTR_ERR(handle);
@@ -2108,7 +2108,7 @@ static int ext3_unlink(struct inode * dir, struct dentry *dentry)
 
 
 	/* Initialize quotas before so that eventual writes go
 	/* Initialize quotas before so that eventual writes go
 	 * in separate transaction */
 	 * in separate transaction */
-	DQUOT_INIT(dentry->d_inode);
+	vfs_dq_init(dentry->d_inode);
 	handle = ext3_journal_start(dir, EXT3_DELETE_TRANS_BLOCKS(dir->i_sb));
 	handle = ext3_journal_start(dir, EXT3_DELETE_TRANS_BLOCKS(dir->i_sb));
 	if (IS_ERR(handle))
 	if (IS_ERR(handle))
 		return PTR_ERR(handle);
 		return PTR_ERR(handle);
@@ -2272,7 +2272,7 @@ static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry,
 	/* Initialize quotas before so that eventual writes go
 	/* Initialize quotas before so that eventual writes go
 	 * in separate transaction */
 	 * in separate transaction */
 	if (new_dentry->d_inode)
 	if (new_dentry->d_inode)
-		DQUOT_INIT(new_dentry->d_inode);
+		vfs_dq_init(new_dentry->d_inode);
 	handle = ext3_journal_start(old_dir, 2 *
 	handle = ext3_journal_start(old_dir, 2 *
 					EXT3_DATA_TRANS_BLOCKS(old_dir->i_sb) +
 					EXT3_DATA_TRANS_BLOCKS(old_dir->i_sb) +
 					EXT3_INDEX_EXTRA_TRANS_BLOCKS + 2);
 					EXT3_INDEX_EXTRA_TRANS_BLOCKS + 2);

+ 2 - 2
fs/ext3/super.c

@@ -1436,7 +1436,7 @@ static void ext3_orphan_cleanup (struct super_block * sb,
 		}
 		}
 
 
 		list_add(&EXT3_I(inode)->i_orphan, &EXT3_SB(sb)->s_orphan);
 		list_add(&EXT3_I(inode)->i_orphan, &EXT3_SB(sb)->s_orphan);
-		DQUOT_INIT(inode);
+		vfs_dq_init(inode);
 		if (inode->i_nlink) {
 		if (inode->i_nlink) {
 			printk(KERN_DEBUG
 			printk(KERN_DEBUG
 				"%s: truncating inode %lu to %Ld bytes\n",
 				"%s: truncating inode %lu to %Ld bytes\n",
@@ -2700,7 +2700,7 @@ static int ext3_statfs (struct dentry * dentry, struct kstatfs * buf)
  * Process 1                         Process 2
  * Process 1                         Process 2
  * ext3_create()                     quota_sync()
  * ext3_create()                     quota_sync()
  *   journal_start()                   write_dquot()
  *   journal_start()                   write_dquot()
- *   DQUOT_INIT()                        down(dqio_mutex)
+ *   vfs_dq_init()                       down(dqio_mutex)
  *     down(dqio_mutex)                    journal_start()
  *     down(dqio_mutex)                    journal_start()
  *
  *
  */
  */

+ 3 - 3
fs/ext3/xattr.c

@@ -498,7 +498,7 @@ ext3_xattr_release_block(handle_t *handle, struct inode *inode,
 		error = ext3_journal_dirty_metadata(handle, bh);
 		error = ext3_journal_dirty_metadata(handle, bh);
 		if (IS_SYNC(inode))
 		if (IS_SYNC(inode))
 			handle->h_sync = 1;
 			handle->h_sync = 1;
-		DQUOT_FREE_BLOCK(inode, 1);
+		vfs_dq_free_block(inode, 1);
 		ea_bdebug(bh, "refcount now=%d; releasing",
 		ea_bdebug(bh, "refcount now=%d; releasing",
 			  le32_to_cpu(BHDR(bh)->h_refcount));
 			  le32_to_cpu(BHDR(bh)->h_refcount));
 		if (ce)
 		if (ce)
@@ -774,7 +774,7 @@ inserted:
 				/* The old block is released after updating
 				/* The old block is released after updating
 				   the inode. */
 				   the inode. */
 				error = -EDQUOT;
 				error = -EDQUOT;
-				if (DQUOT_ALLOC_BLOCK(inode, 1))
+				if (vfs_dq_alloc_block(inode, 1))
 					goto cleanup;
 					goto cleanup;
 				error = ext3_journal_get_write_access(handle,
 				error = ext3_journal_get_write_access(handle,
 								      new_bh);
 								      new_bh);
@@ -848,7 +848,7 @@ cleanup:
 	return error;
 	return error;
 
 
 cleanup_dquot:
 cleanup_dquot:
-	DQUOT_FREE_BLOCK(inode, 1);
+	vfs_dq_free_block(inode, 1);
 	goto cleanup;
 	goto cleanup;
 
 
 bad_block:
 bad_block: