[Ocfs2-devel] [PATCH] fixup journal-related ifdef mess
Manish Singh
manish.singh at oracle.com
Mon Jun 21 15:51:43 CDT 2004
On Sun, Jun 20, 2004 at 04:40:00PM +0200, Christoph Hellwig wrote:
> always use the 2.6 variants and fix up for 2.4 under the hood
>
>
> Index: src/journal.c
> ===================================================================
> --- src/journal.c (revision 1156)
> +++ src/journal.c (working copy)
> @@ -105,9 +105,17 @@
>
> return status;
> }
> -#else
> -#define ocfs_journal_start journal_start
> -#define ocfs_journal_stop journal_stop
> +
> +#define journal_start(journal, nblocks) \
> + ocfs_journal_start(journal, nblocks)
> +#define journal_stop(handle) \
> + ocfs_journal_stop(handle)
> +
> +/* these two gained another argument during 2.6 */
> +#define journal_get_write_access(handle, bh, credits) \
> + journal_get_write_access(handle, bh)
> +#define journal_get_undo_access(handle, bh, credits) \
> + journal_get_undo_access(handle, bh)
> #endif
This breaks with the modversion #define magic. I committed a version
with wrapper inlines, like with journal_start/stop.. if you have a
better idea, let me know.
-Manish
More information about the Ocfs2-devel
mailing list