[PATCH] JFS: Move struct dtsplit from .c to header file
[email protected] Tue, 22 Jul 2003 19:05:43 -0400
| Newsgroups | gmane.comp.file-systems.jfs.patches |
|---|---|
| Message-ID | <20030722230543.GA17786@rushmore> |
Tested on x86 uniprocessor and SMP.
Move struct dtsplit to jfs_dtree.h from jfs_dtree.c.
There are no jfs patches in 2.6.0-test1-ac2, 2.6.0-test1-bk2,
2.6.0-test1-mm2, so it applies to any of them.
diff -Nur linux-2.6.0-test1-ac2/fs/jfs/jfs_dtree.c linux/fs/jfs/jfs_dtree.c
--- linux-2.6.0-test1-ac2/fs/jfs/jfs_dtree.c Thu Jul 10 19:57:30 2003
+++ linux/fs/jfs/jfs_dtree.c Tue Jul 22 18:29:47 2003
@@ -108,16 +108,7 @@
#include "jfs_dmap.h"
#include "jfs_unicode.h"
#include "jfs_debug.h"
-
-/* dtree split parameter */
-struct dtsplit {
- struct metapage *mp;
- s16 index;
- s16 nslot;
- struct component_name *key;
- ddata_t *data;
- struct pxdlist *pxdlist;
-};
+#include "jfs_dtree.h"
#define DT_PAGE(IP, MP) BT_PAGE(IP, MP, dtpage_t, i_dtroot)
diff -Nur linux-2.6.0-test1-ac2/fs/jfs/jfs_dtree.h linux/fs/jfs/jfs_dtree.h
--- linux-2.6.0-test1-ac2/fs/jfs/jfs_dtree.h Tue Sep 17 20:26:52 2002
+++ linux/fs/jfs/jfs_dtree.h Tue Jul 22 18:29:51 2003
@@ -33,6 +33,15 @@
pxd_t xd;
} ddata_t;
+/* dtree split parameter */
+struct dtsplit {
+ struct metapage *mp;
+ s16 index;
+ s16 nslot;
+ struct component_name *key;
+ ddata_t *data;
+ struct pxdlist *pxdlist;
+};
/*
* entry segment/slot
--
Randy Hron
http://home.earthlink.net/~rwhron/kernel/bigbox.html