Reiser4 for 3.11
Hi Edward!
I'm sorry for the silence... The summer, as it usually happens, turned out to be not-easier-than-studying-days (personal life and all), so unfortunately there is not much progress with TRIM implementation for reiser4. There is some code, but it's stability is zero.
Anyway, here is my usual attempt to port reiser4 to next kernel. 3.11 got a significant API change (readdir() of file_operations changed to iterate()), and I'm unsure if I done that correctly. But it works, unlike TRIM. :)
(FYI, iterate() differs from readdir() mostly in that it works with a copy of f_pos instead of with f->f_pos directly.)
Thanks,
Ivan
Quoted 10 lines · Ivan Shapovalov
Hi Edward!
I'm sorry for the silence... The summer, as it usually happens, turned out to be not-easier-than-studying-days (personal life and all), so unfortunately there is not much progress with TRIM implementation for reiser4. There is some code, but it's stability is zero.
Anyway, here is my usual attempt to port reiser4 to next kernel. 3.11 got a significant API change (
readdir()offile_operationschanged toiterate()), and I'm unsure if I done that correctly. But it works, unlike TRIM. :)
Cool. Thanks!!!
Quoted 3 lines
(FYI,
iterate()differs fromreaddir()mostly in that it works with a copy off_posinstead of withf->f_posdirectly.)
AFAIK they fixed races in readdir() and friends.
I'll take a look at this more carefully...
Edward.
Quoted 17 lines · Edward
Quoted 10 lines · Ivan Shapovalov
Hi Edward!
I'm sorry for the silence... The summer, as it usually happens, turned out to be not-easier-than-studying-days (personal life and all), so unfortunately there is not much progress with TRIM implementation for reiser4. There is some code, but it's stability is zero.
Anyway, here is my usual attempt to port reiser4 to next kernel. 3.11 got a significant API change (
readdir()offile_operationschanged toiterate()), and I'm unsure if I done that correctly. But it works, unlike TRIM. :)Cool. Thanks!!!
Quoted 1 line
Quoted 6 lines
Quoted 2 lines
(FYI,
iterate()differs fromreaddir()mostly in that it works with a copy off_posinstead of withf->f_posdirectly.)AFAIK they fixed races in
readdir()and friends.
I'll take a look at this more carefully...
Yes, I've seen that reason. I'd be grateful if you could check my patch - because, again, I could have easily missed something wrt. locking and whether we can modify f->f_pos in the code that fixes it up when entries are inserted/removed.
- Ivan
Quoted 3 lines
Edward.
Quoted 17 lines · Edward Shishkin
Quoted 10 lines · Ivan Shapovalov
Hi Edward!
I'm sorry for the silence... The summer, as it usually happens, turned out to be not-easier-than-studying-days (personal life and all), so unfortunately there is not much progress with TRIM implementation for reiser4. There is some code, but it's stability is zero.
Anyway, here is my usual attempt to port reiser4 to next kernel. 3.11 got a significant API change (
readdir()offile_operationschanged toiterate()), and I'm unsure if I done that correctly. But it works, unlike TRIM. :)Cool. Thanks!!!
Quoted 1 line
Quoted 6 lines
Quoted 2 lines
(FYI,
iterate()differs fromreaddir()mostly in that it works with a copy off_posinstead of withf->f_posdirectly.)AFAIK they fixed races in
readdir()and friends.
I'll take a look at this more carefully...
Vfs people have introduced a new field (.for_sync) of struct wb_writeback_work, it should be initialized as 1 in reiser4_sync_fs().
The next comment is that all PF_FOO flags should be "independent". In particular, "compound" values like 0x80000002 are unacceptable for PF_FLUSHER (is it clear, why so?). I would recommend 0x00000001, or 0x00000002.
In other bits the patch looks OK.
Thanks!
Edward.
Quoted 28 lines · Edward
Quoted 27 lines · Edward Shishkin
Quoted 10 lines · Ivan Shapovalov
Hi Edward!
I'm sorry for the silence... The summer, as it usually happens, turned out to
be not-easier-than-studying-days (personal life and all), so unfortunately
there is not much progress with TRIM implementation for reiser4. There is some
code, but it's stability is zero.Quoted 5 lines
Anyway, here is my usual attempt to port reiser4 to next kernel. 3.11 got a
significant API change (readdir()offile_operationschanged toiterate()),
and I'm unsure if I done that correctly. But it works, unlike TRIM. :)Cool. Thanks!!!
Quoted 4 lines
(FYI,
iterate()differs fromreaddir()mostly in that it works with a copy off_posinstead of withf->f_posdirectly.)
Quoted 7 lines
Quoted 2 lines
AFAIK they fixed races in
readdir()and friends.
I'll take a look at this more carefully...Vfs people have introduced a new field (.for_sync) of struct
wb_writeback_work,
it should be initialized as 1 inreiser4_sync_fs().
Ah, missed that.
Quoted 6 lines
The next comment is that all
PF_FOOflags should be "independent". In particular,
"compound" values like0x80000002are unacceptable forPF_FLUSHER(is it clear,
why so?). I would recommend0x00000001, or0x00000002.
That seems to be a typo... Of course, I know it's a bitmask :)
Quoted 5 lines
In other bits the patch looks OK.
Thanks!
Edward.
Thanks for the review! I'll fix the points and send an updated patch shortly.
Signature · 1 line
Ivan Shapovalov / intelfx /
Quoted 39 lines · Ivan Shapovalov
Quoted 25 lines · Edward
Quoted 24 lines · Edward Shishkin
Quoted 10 lines · Ivan Shapovalov
Hi Edward!
I'm sorry for the silence... The summer, as it usually happens, turned out to
be not-easier-than-studying-days (personal life and all), so unfortunately
there is not much progress with TRIM implementation for reiser4. There is some
code, but it's stability is zero.Quoted 5 lines
Anyway, here is my usual attempt to port reiser4 to next kernel. 3.11 got a
significant API change (readdir()offile_operationschanged toiterate()),
and I'm unsure if I done that correctly. But it works, unlike TRIM. :)Cool. Thanks!!!
Quoted 3 lines
(FYI,
iterate()differs fromreaddir()mostly in that it works with a copy off_posinstead of withf->f_posdirectly.)Quoted 6 lines
Quoted 2 lines
AFAIK they fixed races in
readdir()and friends.
I'll take a look at this more carefully...Vfs people have introduced a new field (.for_sync) of struct
wb_writeback_work,
it should be initialized as 1 inreiser4_sync_fs().Ah, missed that.
Quoted 5 lines
The next comment is that all
PF_FOOflags should be "independent". In particular,
"compound" values like0x80000002are unacceptable forPF_FLUSHER(is it clear,
why so?). I would recommend0x00000001, or0x00000002.
Quoted 8 lines
That seems to be a typo... Of course, I know it's a bitmask :)
Quoted 4 lines
In other bits the patch looks OK.
Thanks!
Edward.Thanks for the review! I'll fix the points and send an updated patch shortly.
Please forward to me as well if you don't mind?
Thanks!
Chris
Quick update
Out of curiosity had to try it, attempted compile w/Reiser4 built in with the first patch I received from Ivan on the new 3.12-rc1.
To nobody's surprise it failed.
Ivan, had you released that new patch by chance with the changes Edward was mentioning?
Thanks again,
Chris
Quoted 49 lines · Chris Gentile
Quoted 36 lines · Ivan Shapovalov
Quoted 20 lines · Edward
Quoted 19 lines · Edward Shishkin
Quoted 10 lines · Ivan Shapovalov
Hi Edward!
I'm sorry for the silence... The summer, as it usually happens, turned out to
be not-easier-than-studying-days (personal life and all), so unfortunately
there is not much progress with TRIM implementation for reiser4. There is some
code, but it's stability is zero.Quoted 5 lines
Anyway, here is my usual attempt to port reiser4 to next kernel. 3.11 got a
significant API change (readdir()offile_operationschanged toiterate()),
and I'm unsure if I done that correctly. But it works, unlike TRIM. :)Cool. Thanks!!!
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
(FYI,
iterate()differs fromreaddir()mostly in that it works with a copy off_posinstead of withf->f_posdirectly.)AFAIK they fixed races in
readdir()and friends.
I'll take a look at this more carefully...Vfs people have introduced a new field (.for_sync) of struct
wb_writeback_work,
it should be initialized as 1 inreiser4_sync_fs().Ah, missed that.
Quoted 5 lines
The next comment is that all
PF_FOOflags should be "independent". In particular,
"compound" values like0x80000002are unacceptable forPF_FLUSHER(is it clear,
why so?). I would recommend0x00000001, or0x00000002.Quoted 8 lines
That seems to be a typo... Of course, I know it's a bitmask :)
Quoted 4 lines
In other bits the patch looks OK.
Thanks!
Edward.Thanks for the review! I'll fix the points and send an updated patch shortly.
Please forward to me as well if you don't mind?
Thanks!
Chris