EXT3_FREE_DATA

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

ext3_free_data - free a list of data blocks  

SYNOPSIS

"SYNOPSIS"

void ext3_free_data (handle_t * handle, struct inode * inode, struct buffer_head * this_bh, u32 * first, u32 * last);  

ARGUMENTS

handle
handle for this transaction
inode
inode we are dealing with
this_bh
indirect buffer_head which contains *first and *last
first
array of block numbers
last
points immediately past the end of array
 

DESCRIPTION

We are freeing all blocks refered from that array (numbers are stored as little-endian 32-bit) and updating inode->i_blocks appropriately.

We accumulate contiguous runs of blocks to free. Conveniently, if these blocks are contiguous then releasing them at one time will only affect one or two bitmap blocks (+ group descriptor(s) and superblock) and we won't actually use a lot of journal space.

this_bh will be NULL if first and last point into the inode's direct block pointers.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 13:31:28 GMT, October 06, 2005