aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/migrate.c
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/migrate.c
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/migrate.c')
-rw-r--r--fs/ext4/migrate.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/ext4/migrate.c b/fs/ext4/migrate.c
index fe64d9f79852..80d075b8aeaf 100644
--- a/fs/ext4/migrate.c
+++ b/fs/ext4/migrate.c
@@ -483,9 +483,8 @@ int ext4_ext_migrate(struct inode *inode)
483 retval = PTR_ERR(handle); 483 retval = PTR_ERR(handle);
484 return retval; 484 return retval;
485 } 485 }
486 tmp_inode = ext4_new_inode(handle, 486 tmp_inode = ext4_new_inode(handle, inode->i_sb->s_root->d_inode,
487 inode->i_sb->s_root->d_inode, 487 S_IFREG, 0);
488 S_IFREG);
489 if (IS_ERR(tmp_inode)) { 488 if (IS_ERR(tmp_inode)) {
490 retval = -ENOMEM; 489 retval = -ENOMEM;
491 ext4_journal_stop(handle); 490 ext4_journal_stop(handle);