shithub: lwext4

Download patch

ref: db9ed22422cf9498c100746f826dd43e1725994c
parent: 4f4561a7faea00a960804169fda2d03c0a1e24d4
author: gkostka <[email protected]>
date: Thu Nov 19 18:30:03 EST 2015

Rename 'initialize_dir_tail' to 'ext4_dir_init_entry_tail'

--- a/lwext4/ext4_dir.c
+++ b/lwext4/ext4_dir.c
@@ -120,8 +120,7 @@
 	return true;
 }
 
-/* checksumming functions */
-void initialize_dir_tail(struct ext4_dir_entry_tail *t)
+void ext4_dir_init_entry_tail(struct ext4_dir_entry_tail *t)
 {
 	memset(t, 0, sizeof(struct ext4_dir_entry_tail));
 	t->rec_len = to_le16(sizeof(struct ext4_dir_entry_tail));
@@ -431,7 +430,7 @@
 				block_size - sizeof(struct ext4_dir_entry_tail),
 				child,
 				name, name_len);
-		initialize_dir_tail(EXT4_DIRENT_TAIL(new_block.data,
+		ext4_dir_init_entry_tail(EXT4_DIRENT_TAIL(new_block.data,
 					ext4_sb_get_block_size(&fs->sb)));
 	} else
 		ext4_dir_write_entry(&fs->sb, block_entry, block_size, child, name,
--- a/lwext4/ext4_dir.h
+++ b/lwext4/ext4_dir.h
@@ -279,8 +279,8 @@
 void ext4_dir_set_checksum(struct ext4_inode_ref *inode_ref,
 			   struct ext4_dir_entry_ll *dirent);
 
-/* checksumming functions */
-void initialize_dir_tail(struct ext4_dir_entry_tail *t);
+
+void ext4_dir_init_entry_tail(struct ext4_dir_entry_tail *t);
 
 #ifdef __cplusplus
 }
--- a/lwext4/ext4_dir_idx.c
+++ b/lwext4/ext4_dir_idx.c
@@ -417,7 +417,7 @@
 		ext4_dir_entry_ll_set_entry_length(be, len);
 		ext4_dir_entry_ll_set_name_length(sb, be, 0);
 		ext4_dir_entry_ll_set_inode_type(sb, be, EXT4_DIRENTRY_UNKNOWN);
-		initialize_dir_tail(EXT4_DIRENT_TAIL(be, block_size));
+		ext4_dir_init_entry_tail(EXT4_DIRENT_TAIL(be, block_size));
 		ext4_dir_set_checksum(dir, be);
 	} else {
 		ext4_dir_entry_ll_set_entry_length(be, block_size);
@@ -1071,9 +1071,9 @@
 		struct ext4_dir_entry_tail *t;
 
 		t = EXT4_DIRENT_TAIL(old_data_block->data, block_size);
-		initialize_dir_tail(t);
+		ext4_dir_init_entry_tail(t);
 		t = EXT4_DIRENT_TAIL(new_data_block_tmp.data, block_size);
-		initialize_dir_tail(t);
+		ext4_dir_init_entry_tail(t);
 	}
 	ext4_dir_set_checksum(inode_ref, (void *)old_data_block->data);
 	ext4_dir_set_checksum(inode_ref, (void *)new_data_block_tmp.data);