EXT2_SPLICE_BRANCH

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

 

NAME

ext2_splice_branch - splice the allocated branch onto inode.  

SYNOPSIS

"SYNOPSIS"

int ext2_splice_branch (struct inode * inode, long block, Indirect chain[4], Indirect * where, int num);  

ARGUMENTS

inode
owner
block
(logical) number of block we are adding
chain[4]
chain of indirect blocks (with a missing link - see ext2_alloc_branch)
where
location of missing link
num
number of blocks we are adding
 

DESCRIPTION

This function verifies that chain (up to the missing link) had not changed, fills the missing link and does all housekeeping needed in inode (->i_blocks, etc.). In case of success we end up with the full chain to new block and return 0. Otherwise (== chain had been changed) we free the new blocks (forgetting their buffer_heads, indeed) and return -EAGAIN.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:08 GMT, October 09, 2005