lkml.org 
[lkml]   [2009]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: EXTRA_VERSION in #if LINUX_VERSION_CODE >= KERNEL_VERSION(x,x,x)
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/


\
 
 \ /
  Last update: 2009-01-24 23:57    [W:0.067 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site