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
90 /* Amount of blocks needed for quota insert/delete - we do some block writes
265 unsigned int line, int type, int blocks,
294 int blocks)
297 return blocks * EXT4_SB(sb)->s_cluster_ratio;
313 #define ext4_journal_start_with_reserve(inode, type, blocks, rsv_blocks)\
314 __ext4_journal_start((inode), __LINE__, (type), (blocks), (rsv_blocks),\
317 #define ext4_journal_start_with_revoke(inode, type, blocks, revoke_creds) \
318 __ext4_journal_start((inode), __LINE__, (type), (blocks), 0, \
323 int blocks, int rsv_blocks,
326 return __ext4_journal_start_sb(inode, inode->i_sb, line, type, blocks,
396 * as freeing one or two blocks is very common pattern and requesting this is
478 static inline int ext4_free_data_revoke_credits(struct inode *inode, int blocks)
485 * Data blocks in one extent are contiguous, just account for partial
488 return blocks + 2*(EXT4_SB(inode->i_sb)->s_cluster_ratio - 1);