Whamcloud - gitweb
b=20668
[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,7 @@ obj-$(CONFIG_EXT4DEV_FS) += ext4dev.o
5  
6  ext4dev-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
9 +                  ext4_jbd2.o migrate.o mballoc.o dynlocks.o
10  
11  ext4dev-$(CONFIG_EXT4DEV_FS_XATTR)     += xattr.o xattr_user.o xattr_trusted.o
12  ext4dev-$(CONFIG_EXT4DEV_FS_POSIX_ACL) += acl.o
13 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
14 --- linux-2.6.27.21-0.1_1//fs/ext4/super.c      2009-08-21 15:12:51.000000000 +0530
15 +++ linux-2.6.27.21-0.1_2//fs/ext4/super.c      2009-08-21 15:18:18.000000000 +0530
16 @@ -4126,6 +4126,7 @@ static int __init init_ext4_fs(void)
17         err = init_inodecache();
18         if (err)
19                 goto out1;
20 +       dynlock_cache_init();
21         err = register_filesystem(&ext4_fs_type);
22         if (err)
23                 goto out;
24 @@ -4149,6 +4150,7 @@ static void __exit exit_ext4_fs(void)
25         unregister_filesystem(&ext4_fs_type);
26         unregister_filesystem(&ext4dev_fs_type);
27         destroy_inodecache();
28 +       dynlock_cache_exit();
29         exit_ext4_xattr();
30         exit_ext4_mballoc();
31         remove_proc_entry("fs/ext4", NULL);
32