diff --git a/ldiskfs/kernel_patches/patches/ext3-export-journal-api.patch b/ldiskfs/kernel_patches/patches/ext3-export-journal-api.patch new file mode 100644 index 0000000000000000000000000000000000000000..7511213bf31e6dcc3dbce8efd84e6769d2bf01bb --- /dev/null +++ b/ldiskfs/kernel_patches/patches/ext3-export-journal-api.patch @@ -0,0 +1,24 @@ +--- linux-src.org/fs/ext3/ext3_jbd.c ++++ linux-src/fs/ext3/ext3_jbd.c +@@ -2,6 +2,7 @@ + * Interface between ext3 and JBD + */ + ++#include <linux/module.h> + #include <linux/ext3_jbd.h> + + int __ext3_journal_get_undo_access(const char *where, handle_t *handle, +@@ -21,6 +21,7 @@ int __ext3_journal_get_write_access(cons + ext3_journal_abort_handle(where, __FUNCTION__, bh, handle,err); + return err; + } ++EXPORT_SYMBOL(__ext3_journal_get_write_access); + + int __ext3_journal_forget(const char *where, handle_t *handle, + struct buffer_head *bh) +@@ -57,3 +58,5 @@ int __ext3_journal_dirty_metadata(const + ext3_journal_abort_handle(where, __FUNCTION__, bh, handle,err); + return err; + } ++ ++EXPORT_SYMBOL(__ext3_journal_dirty_metadata); diff --git a/ldiskfs/kernel_patches/patches/ext3-fiemap-2.6.22-vanilla.patch b/ldiskfs/kernel_patches/patches/ext3-fiemap-2.6.22-vanilla.patch index 101d983df0a49ae43a8c54a8bf68c2f56da61d5c..8554589b5046927eec8a2256a1bf4fa2174d933d 100644 --- a/ldiskfs/kernel_patches/patches/ext3-fiemap-2.6.22-vanilla.patch +++ b/ldiskfs/kernel_patches/patches/ext3-fiemap-2.6.22-vanilla.patch @@ -338,27 +338,3 @@ Index: linux-2.6.18/fs/ext3/fiemap.h +#define FIEMAP_EXTENT_EOF 0x00000100 /* if fm_start+fm_len is beyond EOF*/ + +#endif /* _LINUX_EXT3_FIEMAP_H */ ---- linux-src.org/fs/ext3/ext3_jbd.c -+++ linux-src/fs/ext3/ext3_jbd.c -@@ -2,6 +2,7 @@ - * Interface between ext3 and JBD - */ - -+#include <linux/module.h> - #include <linux/ext3_jbd.h> - - int __ext3_journal_get_undo_access(const char *where, handle_t *handle, -@@ -21,6 +21,7 @@ int __ext3_journal_get_write_access(cons - ext3_journal_abort_handle(where, __FUNCTION__, bh, handle,err); - return err; - } -+EXPORT_SYMBOL(__ext3_journal_get_write_access); - - int __ext3_journal_forget(const char *where, handle_t *handle, - struct buffer_head *bh) -@@ -57,3 +58,5 @@ int __ext3_journal_dirty_metadata(const - ext3_journal_abort_handle(where, __FUNCTION__, bh, handle,err); - return err; - } -+ -+EXPORT_SYMBOL(__ext3_journal_dirty_metadata); diff --git a/ldiskfs/kernel_patches/series/ldiskfs-2.6.22-vanilla.series b/ldiskfs/kernel_patches/series/ldiskfs-2.6.22-vanilla.series index fb575b56b13464590760712c0458a21c686c9f85..5bf60dcb88297cbed56a9b2ffb3496f3f6a97c3e 100644 --- a/ldiskfs/kernel_patches/series/ldiskfs-2.6.22-vanilla.series +++ b/ldiskfs/kernel_patches/series/ldiskfs-2.6.22-vanilla.series @@ -18,3 +18,4 @@ ext3-fiemap-2.6.22-vanilla.patch ext3-statfs-2.6.22.patch ext3-lookup-dotdot-2.6.9.patch ext3-unlink-race.patch +ext3-export-journal-api.patch