Whamcloud - gitweb
cecbbb113fa152783aac1f68a9414357800930a6
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / ext4-dynlocks-2.6-rhel5.patch
1 Index: linux-stage/fs/ext4/Makefile
2 ===================================================================
3 --- linux-stage.orig/fs/ext4/Makefile
4 +++ linux-stage/fs/ext4/Makefile
5 @@ -7,7 +7,7 @@ obj-$(CONFIG_EXT4_FS) += ext4.o
6  ext4-y := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.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 -               mmp.o
10 +               mmp.o 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 Index: linux-stage/fs/ext4/super.c
15 ===================================================================
16 --- linux-stage.orig/fs/ext4/super.c
17 +++ linux-stage/fs/ext4/super.c
18 @@ -4159,6 +4159,7 @@ static int __init init_ext4_fs(void)
19         err = init_inodecache();
20         if (err)
21                 goto out1;
22 +       dynlock_cache_init();
23         err = register_filesystem(&ext4_fs_type);
24         if (err)
25                 goto out;
26 @@ -4195,6 +4196,7 @@ static void __exit exit_ext4_fs(void)
27         unregister_filesystem(&ext4dev_fs_type);
28  #endif
29         destroy_inodecache();
30 +       dynlock_cache_exit();
31         exit_ext4_xattr();
32         exit_ext4_mballoc();
33         __free_page(ext4_zero_page);