/* Force all delayed allocation blocks to be allocated for a given inode.  */
int ext4_alloc_da_blocks(struct inode *inode)
/* Force all delayed allocation blocks to be allocated for a given inode.  */
int ext4_alloc_da_blocks(struct inode *inode)
{
	trace_ext4_alloc_da_blocks(inode);
	if (!EXT4_I(inode)->i_reserved_data_blocks &&
	    !EXT4_I(inode)->i_reserved_meta_blocks)
		return 0;
	return filemap_flush(inode->i_mapping);
}