Whamcloud - gitweb
b=20581 MDS returns full hash for readdir to decrease hash collision
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / ext4-dynlocks-2.6-rhel5.patch
1 diff -rupN linux-2.6.27.21-0.1_1//fs/ext4/Makefile linux-2.6.27.21-0.1_2//fs/ext4/Makefile
2 --- linux-2.6.27.21-0.1_1//fs/ext4/Makefile     2009-08-21 15:12:51.000000000 +0530
3 +++ linux-2.6.27.21-0.1_2//fs/ext4/Makefile     2009-08-21 15:13:23.000000000 +0530
4 @@ -6,7 +6,8 @@ obj-$(CONFIG_EXT4DEV_FS) += ext4dev.o
5  
6  ext4-y := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o iopen.o \
7                 ioctl.o namei.o super.o symlink.o hash.o resize.o extents.o \
8 -               ext4_jbd2.o migrate.o mballoc.o block_validity.o move_extent.o
9 +               ext4_jbd2.o migrate.o mballoc.o block_validity.o move_extent.o \
10 +               dynlocks.o
11
12  ext4-$(CONFIG_EXT4_FS_XATTR)           += xattr.o xattr_user.o xattr_trusted.o
13  ext4-$(CONFIG_EXT4_FS_POSIX_ACL)       += acl.o
14 diff -rupN linux-2.6.27.21-0.1_1//fs/ext4/super.c linux-2.6.27.21-0.1_2//fs/ext4/super.c
15 --- linux-2.6.27.21-0.1_1//fs/ext4/super.c      2009-08-21 15:12:51.000000000 +0530
16 +++ linux-2.6.27.21-0.1_2//fs/ext4/super.c      2009-08-21 15:18:18.000000000 +0530
17 @@ -4126,6 +4126,7 @@ static int __init init_ext4_fs(void)
18         err = init_inodecache();
19         if (err)
20                 goto out1;
21 +       dynlock_cache_init();
22         err = register_filesystem(&ext4_fs_type);
23         if (err)
24                 goto out;
25 @@ -4149,6 +4150,7 @@ static void __exit exit_ext4_fs(void)
26         unregister_filesystem(&ext4_fs_type);
27         unregister_filesystem(&ext4dev_fs_type);
28         destroy_inodecache();
29 +       dynlock_cache_exit();
30         exit_ext4_xattr();
31         exit_ext4_mballoc();
32         remove_proc_entry("fs/ext4", NULL);
33