Reiser4: Compilation Error on 2.6.28.1_[Scanned]
Reiser4-for-2.6.28 does apply but fails to compile on vanilla-2.6.28.1 due to the following commit:
Attached is a tiny fix which works fine here.
Signature · 2 lines
Ingo Bormuth, voicebox & telefax: +49-(0)-12125-10226517 PGP public key 86326EC9 at http://ibormuth.efil.de/contact
reiser4/plugin/file/file_conversion.c renamed from tmp/reiser4/plugin/file/file_conversion.c +1 -1
@@ -686,7 +686,7 @@ start = pos & (PAGE_CACHE_SIZE -1 ); end = start + len; - page =__grab_cache_page (mapping, index); + page =grab_cache_page_write_begin (mapping, index, flags); *pagep = page;if (!page)return -ENOMEM ;
Quoted 6 lines · Ingo Bormuth
Reiser4-for-2.6.28 does apply but fails to compile on vanilla-2.6.28.1 due to the following commit:
Attached is a tiny fix which works fine here.
yeah, with your patch it will act as earlier, however, -mm guys decided to get rig of __GFP_FS flag:
http://userweb.kernel.org/~akpm/mmotm/broken-out/fs-symlink-write_begin-allocation-context-fix-reiser4-fix.patch
it seems they found it deadlocky..
Thanks,
Edward.
Quoted 7 lines · Edward Shishkin
Quoted 6 lines · Ingo Bormuth
Reiser4-for-2.6.28 does apply but fails to compile on vanilla-2.6.28.1 due to the following commit:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit
diff;h=54566b2c1594c2326a645a3551f9d989f7ba3c5e
Quoted 6 lines
Quoted 1 line
Attached is a tiny fix which works fine here.
yeah, with your patch it will act as earlier,
however, -mm guys decided to get rig of__GFP_FSflag:
http://userweb.kernel.org/~akpm/mmotm/broken-out/fs-symlink-write_begin-all
ocation-context-fix-reiser4-fix.patch it seems they found it deadlocky..
so without Ingo Bormuth's patch you can't use r4 with 2.6.28.1 and later and with his patch there is a risk of deadlocks?
Glück Auf,
Volker
--
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
Quoted 2 lines · Volker Armin Hemmann
so without Ingo Bormuth's patch you can't use r4 with 2.6.28.1 and later and with his patch there is a risk of deadlocks?
After Edward's reply actually I changed to use the attached mm patch which is actually the same as what I did with additionally setting the AOP_FLAG_NOFS flag before calling grab_cache_page_write_begin. It applies and works nicely with vanilla 2.6.28.2 too.
Signature · 2 lines
Ingo Bormuth, voicebox & telefax: +49-(0)-12125-10226517 PGP public key 86326EC9 at http://ibormuth.efil.de/contact
From: KOSAKI Motohiro <[email protected]>
build fix.
---
fs/reiser4/plugin/file/file_conversion.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
fs/reiser4/plugin/file/file_conversion.c renamed from fs/reiser4/plugin/file/file_conversion.c~fs-symlink-write_begin-allocation-context-fix-reiser4-fix +2 -1
@@ -686,7 +686,8 @@ int reiser4_write_begin_careful(struct f start = pos & (PAGE_CACHE_SIZE -1 ); end = start + len; - page =__grab_cache_page (mapping, index); + page =grab_cache_page_write_begin (mapping, index, + flags &AOP_FLAG_NOFS ); *pagep = page;if (!page)return -ENOMEM ;
_