Skip to contentSkip to conversation

Small fix for reiser4 compiling issue

DISCUSSION Matthias Grobarek 2 participants 2 messages Feb 1, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

while playing around with my Gentoo system, I decided to switch to a hardened profile, including the usage of a kernel from the Hardened Gentoo project. This is a heavily patched kernel 2.6.28, but it doesn’t include reiser4 support, so I needed to create a custom one from it to include the reiser4 2.6.28 patchset. When I tried to compile this kernel, I got an error in one of the reiser4 files... and of course I forgot to note the error down, something about using implicit declaration of a function. Luckily, I could see a simple solution in the other filesystem drivers in the kernel, so I changed the erroneous reiser4 file accordingly and voilà, the kernel compiled.

I’m not familar with creating patches and such, so I just give you the diff output. The file it’s referring to is:
fs/reiser4/plugin/file/file_conversion.c

689c689
< page = __grab_cache_page(mapping, index);
---

Quoted 1 line
      page = grab_cache_page(mapping, index);

I still haven’t tested the kernel, but the fact that it compiles is enough for me to believe it will work (just as reiser4 has been working for me flawlessly). Furthermore, I have absolutely no clue about kernel driver development, so I’m not sure what implications this change has.

Regards,

Matthias Grobarek
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw
Quoted 2 lines · Matthias Grobarek

Hi,

Hello.

Quoted 6 lines

while playing around with my Gentoo system, I decided to switch to a hardened profile, including the usage of a kernel from the Hardened Gentoo project. This is a heavily patched kernel 2.6.28, but it doesn’t include reiser4 support, so I needed to create a custom one from it to include the reiser4 2.6.28 patchset. When I tried to compile this kernel, I got an error in one of the reiser4 files... and of course I forgot to note the error down, something about using implicit declaration of a function. Luckily, I could see a simple solution in the other filesystem drivers in the kernel, so I changed the erroneous reiser4 file accordingly and voilà, the kernel compiled.

Quoted 11 lines

I’m not familar with creating patches and such, so I just give you the diff output. The file it’s referring to is:
fs/reiser4/plugin/file/file_conversion.c

689c689
< page = __grab_cache_page(mapping, index);
---

Quoted 2 lines
      page = grab_cache_page(mapping, index);

Here is the correct patch:
http://userweb.kernel.org/~akpm/mmotm/broken-out/fs-symlink-write_begin-allocation-context-fix-reiser4-fix.patch

Thanks,
Edward.

Quoted 13 lines

I still haven’t tested the kernel, but the fact that it compiles is enough for me to believe it will work (just as reiser4 has been working for me flawlessly). Furthermore, I have absolutely no clue about kernel driver development, so I’m not sure what implications this change has.

Regards,

Matthias Grobarek
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html