From: Sunil Mushran <sunil.mushran@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 01/10] ocfs2: Handle workqueue changes
Date: Wed, 11 Nov 2009 10:11:30 -0800 [thread overview]
Message-ID: <4AFAFE52.3040305@oracle.com> (raw)
In-Reply-To: <20091111025746.GB17774@mail.oracle.com>
Joel Becker wrote:
> Rather than include kapi-compat/include/workqueue.h at all
> times, I'd really like to only include it when necessary. That way you
> can build the driver against mainline even when there is no kapi-compat
> directory.
> Can't we have an fs/ocfs2/kapi-default.h that has defines for
> when we're against mainline? Include it from fs/ocfs2/ocfs2.h. For
> this patch, it would include:
>
> #ifndef KAPI_INIT_WORK
> typedef struct work_struct kapi_work_struct_t;
> # define work_to_object(a, b, c) container_of(a, b, c)
> # define KAPI_INIT_WORK(a, b, c) INIT_WORK(a, b)
> # define KAPI_INIT_DELAYED_WORK(a, b, c) INIT_DELAYED_WORK(a, b)
> #endif
>
Yeah, that's a good idea.
next prev parent reply other threads:[~2009-11-11 18:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-10 2:00 [Ocfs2-devel] ocfs2 1.6 - second set of patches Sunil Mushran
2009-11-10 2:00 ` [Ocfs2-devel] [PATCH 01/10] ocfs2: Handle workqueue changes Sunil Mushran
2009-11-11 2:57 ` Joel Becker
2009-11-11 18:11 ` Sunil Mushran [this message]
2009-11-10 2:00 ` [Ocfs2-devel] [PATCH 02/10] ocfs2: Handle missing dlmconstants.h Sunil Mushran
2009-11-11 2:59 ` Joel Becker
2009-11-11 19:27 ` Sunil Mushran
2009-11-11 22:57 ` Joel Becker
2009-11-10 2:00 ` [Ocfs2-devel] [PATCH 03/10] ocfs2: Add helper task_pid_nr() Sunil Mushran
2009-11-10 2:00 ` [Ocfs2-devel] [PATCH 04/10] ocfs2: Enable CONFIG_OCFS2_FS_POSIX_ACL Sunil Mushran
2009-11-10 2:00 ` [Ocfs2-devel] [PATCH 05/10] ocfs2: Add helper current_umask() Sunil Mushran
2009-11-10 2:00 ` [Ocfs2-devel] [PATCH 06/10] ocfs2: Handle missing do_sync_mapping_range() Sunil Mushran
2009-11-10 2:00 ` [Ocfs2-devel] [PATCH 07/10] ocfs2: Handle struct f_path in struct file Sunil Mushran
2009-11-11 3:03 ` Joel Becker
2009-11-10 2:00 ` [Ocfs2-devel] [PATCH 08/10] ocfs2: Handle struct address_space_operations_ext Sunil Mushran
2009-11-10 2:00 ` [Ocfs2-devel] [PATCH 09/10] ocfs2: Handle missing USHORT_MAX Sunil Mushran
2009-11-10 2:00 ` [Ocfs2-devel] [PATCH 10/10] ocfs2: Handle different f_version types Sunil Mushran
2009-11-11 3:13 ` Joel Becker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AFAFE52.3040305@oracle.com \
--to=sunil.mushran@oracle.com \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.