From 26714f1ba437a3518393dbf79a07502b6902816c Mon Sep 17 00:00:00 2001 From: Bobi Jam Date: Fri, 25 Mar 2011 00:57:31 +0800 Subject: [PATCH] LU-162 Export ext4_discard_preallocations for ldiskfs Change-Id: I75d5553293fe5c4e409557895c48d02c65180409 Signed-off-by: Bobi Jam Reviewed-on: http://review.whamcloud.com/360 Tested-by: Hudson Reviewed-by: Oleg Drokin --- ldiskfs/kernel_patches/patches/ext4-misc-rhel5.patch | 10 ++-------- ldiskfs/kernel_patches/patches/ext4-misc-sles11.patch | 10 ++-------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/ldiskfs/kernel_patches/patches/ext4-misc-rhel5.patch b/ldiskfs/kernel_patches/patches/ext4-misc-rhel5.patch index 43cc3bc..84b9ac2 100644 --- a/ldiskfs/kernel_patches/patches/ext4-misc-rhel5.patch +++ b/ldiskfs/kernel_patches/patches/ext4-misc-rhel5.patch @@ -160,17 +160,11 @@ Index: linux-stage/fs/ext4/mballoc.c =================================================================== --- linux-stage.orig/fs/ext4/mballoc.c 2011-03-14 17:17:59.872649833 +0800 +++ linux-stage/fs/ext4/mballoc.c 2011-03-14 17:25:20.373903681 +0800 -@@ -4302,6 +4302,13 @@ +@@ -4302,6 +4302,7 @@ kmem_cache_free(ext4_ac_cachep, ac); } ++EXPORT_SYMBOL(ext4_discard_preallocations); -+/* For backward compatibility, since Lustre uses this symbol */ -+void ext4_mb_discard_inode_preallocations(struct inode *inode) -+{ -+ ext4_discard_preallocations(inode); -+} -+EXPORT_SYMBOL(ext4_mb_discard_inode_preallocations); -+ /* * finds all preallocated spaces and return blocks being freed to them * if preallocated space becomes full (no block is used from the space) diff --git a/ldiskfs/kernel_patches/patches/ext4-misc-sles11.patch b/ldiskfs/kernel_patches/patches/ext4-misc-sles11.patch index b0a08bf..eb817a3 100644 --- a/ldiskfs/kernel_patches/patches/ext4-misc-sles11.patch +++ b/ldiskfs/kernel_patches/patches/ext4-misc-sles11.patch @@ -175,17 +175,11 @@ Index: linux-2.6.27.21-0.1/fs/ext4/mballoc.c =================================================================== --- linux-2.6.27.21-0.1.orig/fs/ext4/mballoc.c 2009-07-07 14:47:19.000000000 +0530 +++ linux-2.6.27.21-0.1/fs/ext4/mballoc.c 2009-07-07 14:47:22.000000000 +0530 -@@ -4355,6 +4355,13 @@ +@@ -4355,6 +4355,7 @@ kmem_cache_free(ext4_ac_cachep, ac); } ++EXPORT_SYMBOL(ext4_discard_preallocations); -+/* For backward compatibility, since Lustre uses this symbol */ -+void ext4_mb_discard_inode_preallocations(struct inode *inode) -+{ -+ ext4_discard_preallocations(inode); -+} -+EXPORT_SYMBOL(ext4_mb_discard_inode_preallocations); -+ /* * finds all preallocated spaces and return blocks being freed to them * if preallocated space becomes full (no block is used from the space) -- 1.8.3.1