aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-06-13 11:09:42 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-06-13 11:09:42 -0400
commitf157a4aa98a18bd3817a72bea90d48494e2586e7 (patch)
tree105547639a67296b4ea7acdc35c9e65ee2a85fd8 /fs/ext4/ext4.h
parent8a8a2050c844d9de224ff591e91bda3f77bd6eda (diff)
ext4: Use a hash of the topdir directory name for the Orlov parent group
Instead of using a random number to determine the goal parent grop for the Orlov top directories, use a hash of the directory name. This allows for repeatable results when trying to benchmark filesystem layout algorithms. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 06ee5a582917..d035cf149e0e 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1315,7 +1315,8 @@ extern int ext4fs_dirhash(const char *name, int len, struct
1315 dx_hash_info *hinfo); 1315 dx_hash_info *hinfo);
1316 1316
1317/* ialloc.c */ 1317/* ialloc.c */
1318extern struct inode * ext4_new_inode(handle_t *, struct inode *, int); 1318extern struct inode *ext4_new_inode(handle_t *, struct inode *, int,
1319 const struct qstr *qstr);
1319extern void ext4_free_inode(handle_t *, struct inode *); 1320extern void ext4_free_inode(handle_t *, struct inode *);
1320extern struct inode * ext4_orphan_get(struct super_block *, unsigned long); 1321extern struct inode * ext4_orphan_get(struct super_block *, unsigned long);
1321extern unsigned long ext4_count_free_inodes(struct super_block *); 1322extern unsigned long ext4_count_free_inodes(struct super_block *);