* Reiser4 for 3.11 @ 2013-09-06 5:36 Ivan Shapovalov 2013-09-09 10:44 ` Edward Shishkin 0 siblings, 1 reply; 7+ messages in thread From: Ivan Shapovalov @ 2013-09-06 5:36 UTC (permalink / raw) To: Edward Shishkin; +Cc: reiserfs-devel 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Reiser4 for 3.11 2013-09-06 5:36 Reiser4 for 3.11 Ivan Shapovalov @ 2013-09-09 10:44 ` Edward Shishkin 2013-09-09 10:53 ` Ivan Shapovalov 2013-09-15 19:37 ` Edward Shishkin 0 siblings, 2 replies; 7+ messages in thread From: Edward Shishkin @ 2013-09-09 10:44 UTC (permalink / raw) To: Ivan Shapovalov; +Cc: reiserfs-devel On 09/06/2013 07:36 AM, Ivan Shapovalov wrote: > 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. :) Cool. Thanks!!! > > (FYI, iterate() differs from readdir() mostly in that it works with a copy of > f_pos instead of with f->f_pos directly.) AFAIK they fixed races in readdir() and friends. I'll take a look at this more carefully... Edward. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Reiser4 for 3.11 2013-09-09 10:44 ` Edward Shishkin @ 2013-09-09 10:53 ` Ivan Shapovalov 2013-09-15 19:37 ` Edward Shishkin 1 sibling, 0 replies; 7+ messages in thread From: Ivan Shapovalov @ 2013-09-09 10:53 UTC (permalink / raw) To: Edward Shishkin; +Cc: reiserfs-devel On Monday 09 September 2013 at 12:44:01, Edward wrote: > On 09/06/2013 07:36 AM, Ivan Shapovalov wrote: > > 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. :) > > > Cool. Thanks!!! > > > > > > (FYI, iterate() differs from readdir() mostly in that it works with a copy of > > f_pos instead of with f->f_pos directly.) > > > 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 > > > Edward. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Reiser4 for 3.11 2013-09-09 10:44 ` Edward Shishkin 2013-09-09 10:53 ` Ivan Shapovalov @ 2013-09-15 19:37 ` Edward Shishkin 2013-09-15 19:51 ` Ivan Shapovalov 1 sibling, 1 reply; 7+ messages in thread From: Edward Shishkin @ 2013-09-15 19:37 UTC (permalink / raw) To: Ivan Shapovalov; +Cc: reiserfs-devel On 09/09/2013 12:44 PM, Edward Shishkin wrote: > On 09/06/2013 07:36 AM, Ivan Shapovalov wrote: >> 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. :) > > > Cool. Thanks!!! > > >> >> (FYI, iterate() differs from readdir() mostly in that it works with a >> copy of >> f_pos instead of with f->f_pos directly.) > > > 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Reiser4 for 3.11 2013-09-15 19:37 ` Edward Shishkin @ 2013-09-15 19:51 ` Ivan Shapovalov 2013-09-15 20:13 ` Chris Gentile 0 siblings, 1 reply; 7+ messages in thread From: Ivan Shapovalov @ 2013-09-15 19:51 UTC (permalink / raw) To: Edward Shishkin; +Cc: reiserfs-devel On Sunday 15 September 2013 at 21:37:31, Edward wrote: > On 09/09/2013 12:44 PM, Edward Shishkin wrote: > > On 09/06/2013 07:36 AM, Ivan Shapovalov wrote: > >> 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. :) > > > > > > Cool. Thanks!!! > > > > > >> > >> (FYI, iterate() differs from readdir() mostly in that it works with a > >> copy of > >> f_pos instead of with f->f_pos directly.) > > > > > > 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(). Ah, missed that. > > 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. That seems to be a typo... Of course, I know it's a bitmask :) > > In other bits the patch looks OK. > > Thanks! > Edward. Thanks for the review! I'll fix the points and send an updated patch shortly. -- Ivan Shapovalov / intelfx / ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Reiser4 for 3.11 2013-09-15 19:51 ` Ivan Shapovalov @ 2013-09-15 20:13 ` Chris Gentile 2013-09-17 17:26 ` Quick update Chris Gentile 0 siblings, 1 reply; 7+ messages in thread From: Chris Gentile @ 2013-09-15 20:13 UTC (permalink / raw) To: Ivan Shapovalov; +Cc: Edward Shishkin, reiserfs-devel On 09/15/13 19:51, Ivan Shapovalov wrote: > On Sunday 15 September 2013 at 21:37:31, Edward wrote: >> On 09/09/2013 12:44 PM, Edward Shishkin wrote: >>> On 09/06/2013 07:36 AM, Ivan Shapovalov wrote: >>>> 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. :) >>> >>> Cool. Thanks!!! >>> >>> >>>> (FYI, iterate() differs from readdir() mostly in that it works with a >>>> copy of >>>> f_pos instead of with f->f_pos directly.) >>> >>> 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(). > Ah, missed that. > >> 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. > That seems to be a typo... Of course, I know it's a bitmask :) > >> 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Quick update 2013-09-15 20:13 ` Chris Gentile @ 2013-09-17 17:26 ` Chris Gentile 0 siblings, 0 replies; 7+ messages in thread From: Chris Gentile @ 2013-09-17 17:26 UTC (permalink / raw) To: Ivan Shapovalov; +Cc: Edward Shishkin, reiserfs-devel 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 On 09/15/2013 08:13 PM, Chris Gentile wrote: > On 09/15/13 19:51, Ivan Shapovalov wrote: >> On Sunday 15 September 2013 at 21:37:31, Edward wrote: >>> On 09/09/2013 12:44 PM, Edward Shishkin wrote: >>>> On 09/06/2013 07:36 AM, Ivan Shapovalov wrote: >>>>> 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. :) >>>> Cool. Thanks!!! >>>> >>>> >>>>> (FYI, iterate() differs from readdir() mostly in that it works with a >>>>> copy of >>>>> f_pos instead of with f->f_pos directly.) >>>> 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(). >> Ah, missed that. >> >>> 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. >> That seems to be a typo... Of course, I know it's a bitmask :) >> >>> 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 > ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-09-17 17:26 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-09-06 5:36 Reiser4 for 3.11 Ivan Shapovalov 2013-09-09 10:44 ` Edward Shishkin 2013-09-09 10:53 ` Ivan Shapovalov 2013-09-15 19:37 ` Edward Shishkin 2013-09-15 19:51 ` Ivan Shapovalov 2013-09-15 20:13 ` Chris Gentile 2013-09-17 17:26 ` Quick update Chris Gentile
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).