From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Peter Hallberg <hallberg68@hotmail.com>
Cc: arjan@infradead.org, linux-kernel@vger.kernel.org
Subject: Re: EXTRA_VERSION in #if LINUX_VERSION_CODE >= KERNEL_VERSION(x,x,x)
Date: Sat, 24 Jan 2009 23:54:11 +0100 [thread overview]
Message-ID: <497B9C13.4020802@s5r6.in-berlin.de> (raw)
In-Reply-To: <BLU122-W460604D42E2337F7CA32D4DACC0@phx.gbl>
Peter Hallberg wrote:
>>> How does one write stuff like
>>> #if LINUX_VERSION_CODE>= KERNEL_VERSION(2,6,28)
>>> if the 4 digit EXTRA_VERSION also is needed?u
>> if you need that something is wrong....
>>
>> can you be more elaborate in what you're trying to achieve ?
>
> Between 2.6.28 and 2.6.28.1 you changed the function grab_cache_page
> to grab_cache_page_write_begin and added a flags argument. Since I
> maintain an separate filesystem module I need to take care of this.
> From the change log:
...
> commit 54566b2c1594c2326a645a3551f9d989f7ba3c5e upstream.
There is a simple trick. Have a look at that commit. It adds
#define AOP_FLAG_NOFS 0x0004
to <linux/fs.h>. You could check for it with #ifdef.
Or you could choose to not support 2.6.28, only 2.6.28.y.
--
Stefan Richter
-=====-==--= ---= ==---
http://arcgraph.de/sr/
next prev parent reply other threads:[~2009-01-24 22:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-24 14:32 Peter Hallberg
2009-01-24 16:01 ` Arjan van de Ven
2009-01-24 16:17 ` Peter Hallberg
2009-01-24 22:54 ` Stefan Richter [this message]
2009-01-24 22:56 ` Stefan Richter
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=497B9C13.4020802@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=arjan@infradead.org \
--cc=hallberg68@hotmail.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®