diff options
author | Jan Kara <jack@suse.cz> | 2015-12-23 14:21:13 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2015-12-23 18:04:52 +0100 |
commit | fcea62babc8100aee79c716c81203c6d105b2da0 (patch) | |
tree | 326aded5e99730a5f12b403339b36534f06fc28e /fs/udf/udfdecl.h | |
parent | b0918d9f476a8434b055e362b83fa4fd1d462c3f (diff) | |
download | linux-fcea62babc8100aee79c716c81203c6d105b2da0.tar.gz linux-fcea62babc8100aee79c716c81203c6d105b2da0.tar.bz2 linux-fcea62babc8100aee79c716c81203c6d105b2da0.zip |
udf: Factor out code for creating indirect extent
Factor out code for creating indirect extent from udf_add_aext(). It was
mostly duplicated in two places. Also remove some opencoded versions
of udf_write_aext().
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/udfdecl.h')
-rw-r--r-- | fs/udf/udfdecl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h index 47bb3f5ca360..269ad3fb2fab 100644 --- a/fs/udf/udfdecl.h +++ b/fs/udf/udfdecl.h @@ -159,6 +159,10 @@ extern int udf_write_inode(struct inode *, struct writeback_control *wbc); extern long udf_block_map(struct inode *, sector_t); extern int8_t inode_bmap(struct inode *, sector_t, struct extent_position *, struct kernel_lb_addr *, uint32_t *, sector_t *); +extern int udf_setup_indirect_aext(struct inode *inode, int block, + struct extent_position *epos); +extern int __udf_add_aext(struct inode *inode, struct extent_position *epos, + struct kernel_lb_addr *eloc, uint32_t elen, int inc); extern int udf_add_aext(struct inode *, struct extent_position *, struct kernel_lb_addr *, uint32_t, int); extern void udf_write_aext(struct inode *, struct extent_position *, |