[Ocfs2-devel] Revision 30 fails to insmod
Rusty Lynch
rusty at linux.co.intel.com
Tue Feb 10 16:26:21 CST 2004
On Tue, Feb 10, 2004 at 04:07:26PM -0800, Villalovos, John L wrote:
> Just did a sync with revision 30 from the repository.
>
> It fails to insmod.
>
> /lib/modules/2.4.22-1.2149.nptl/unsupported/fs/ocfs2.o: unresolved
> symbol OCFS_SB_GET_KDEV
>
> It looks like the latest revision removed the definition of
> OCFS_SB_GET_KDEV in src/inc/ocfs.h but is still using the macro :(
Here is a fix
--rusty
Index: src/inc/ocfs.h
===================================================================
--- src/inc/ocfs.h (revision 30)
+++ src/inc/ocfs.h (working copy)
@@ -1107,7 +1107,7 @@
typedef long sector_t;
#define map_bh(bh, sb, blk) \
({ \
- bh->b_dev = OCFS_SB_GET_KDEV(sb); \
+ bh->b_dev = sb->s_dev; \
bh->b_blocknr = blk; \
bh->b_state |= (1UL << BH_Mapped); \
})
More information about the Ocfs2-devel
mailing list