Lines Matching defs:blocks
21 /* Define the number of blocks we need to account to a transaction to
25 * indirection blocks, the group and superblock summaries, and the data
53 * Define the number of metadata blocks we need to account to modify data.
55 * This include super block, inode block, quota blocks and xattr blocks
79 * directory. For each new index block, we need 4 blocks (old index
87 /* Amount of blocks needed for quota update - we know that the structure was
91 /* Amount of blocks needed for quota insert/delete - we do some block writes
262 int type, int blocks, int rsv_blocks,
291 int blocks)
294 return blocks * EXT4_SB(sb)->s_cluster_ratio;
310 #define ext4_journal_start_with_reserve(inode, type, blocks, rsv_blocks)\
311 __ext4_journal_start((inode), __LINE__, (type), (blocks), (rsv_blocks),\
314 #define ext4_journal_start_with_revoke(inode, type, blocks, revoke_creds) \
315 __ext4_journal_start((inode), __LINE__, (type), (blocks), 0, \
320 int blocks, int rsv_blocks,
323 return __ext4_journal_start_sb(inode->i_sb, line, type, blocks,
393 * as freeing one or two blocks is very common pattern and requesting this is
475 static inline int ext4_free_data_revoke_credits(struct inode *inode, int blocks)
482 * Data blocks in one extent are contiguous, just account for partial
485 return blocks + 2*(EXT4_SB(inode->i_sb)->s_cluster_ratio - 1);