shithub: lwext4

Download patch

ref: 1dbb77351f4bc1498fd07cda85b1445fcf960121
parent: 31219e3b9ed046551de6931c0705a04c4a1c5282
author: gkostka <[email protected]>
date: Tue Oct 20 17:13:07 EDT 2015

Move ext4_fs_set_inode_data_block_index to module internals

--- a/lwext4/ext4_fs.c
+++ b/lwext4/ext4_fs.c
@@ -1222,7 +1222,7 @@
 			true, true);
 }
 
-int ext4_fs_set_inode_data_block_index(struct ext4_inode_ref *inode_ref,
+static int ext4_fs_set_inode_data_block_index(struct ext4_inode_ref *inode_ref,
 				       uint64_t iblock, ext4_fsblk_t fblock)
 {
 	struct ext4_fs *fs = inode_ref->fs;
--- a/lwext4/ext4_fs.h
+++ b/lwext4/ext4_fs.h
@@ -203,15 +203,6 @@
 int ext4_fs_init_inode_data_block_index(struct ext4_inode_ref *inode_ref,
 				       uint64_t iblock, ext4_fsblk_t *fblock);
 
-/**@brief Set physical block address for the block logical address into the
- * i-node.
- * @param inode_ref I-node to set block address to
- * @param iblock    Logical index of block
- * @param fblock    Physical block address
- * @return Error code
- */
-int ext4_fs_set_inode_data_block_index(struct ext4_inode_ref *inode_ref,
-				       uint64_t iblock, ext4_fsblk_t fblock);
 
 /**@brief Release data block from i-node
  * @param inode_ref I-node to release block from