Message ID | 50AA8914.2090009@blunderer.org |
---|---|
State | New, archived |
Headers | show |
On Mon, 2012-11-19 at 14:31 -0500, Tristan Lelong wrote: > Hi, > > I am trying to use logfs for a project I am currently working on. The > kernel version I used is 2.6.37 with some patch from TI DM8168. I wonder if logfs is maintained?
On Thu, Nov 22, 2012 at 12:53:58PM +0200, Artem Bityutskiy wrote: > On Mon, 2012-11-19 at 14:31 -0500, Tristan Lelong wrote: > > Hi, > > > > I am trying to use logfs for a project I am currently working on. The > > kernel version I used is 2.6.37 with some patch from TI DM8168. > > I wonder if logfs is maintained? It is being maintained however, for last few months I have not been able to work on it much. > > -- > Best Regards, > Artem Bityutskiy
On Thu, Nov 22, 2012 at 10:26:53PM +0530, prasad wrote: > On Thu, Nov 22, 2012 at 12:53:58PM +0200, Artem Bityutskiy wrote: > > On Mon, 2012-11-19 at 14:31 -0500, Tristan Lelong wrote: > > > Hi, > > > > > > I am trying to use logfs for a project I am currently working on. The > > > kernel version I used is 2.6.37 with some patch from TI DM8168. > > > > I wonder if logfs is maintained? > > It is being maintained however, for last few months I have not been able to work on it much. BTW, The latest repository is here https://github.com/prasad-joshi/logfs_upstream > > > > > -- > > Best Regards, > > Artem Bityutskiy > >
Index: super.c =================================================================== --- super.c (revision 24035) +++ super.c (working copy) @@ -511,6 +510,7 @@ /* Alias entries slow down mount, so evict as many as possible */ sync_filesystem(sb); logfs_write_anchor(sb); + free_areas(sb); /* * From this point on alias entries are simply dropped - and any Index: segment.c =================================================================== --- segment.c (revision 24035) +++ segment.c (working copy) @@ -841,6 +841,16 @@ kfree(area); } +void free_areas(struct super_block *sb) +{ + struct logfs_super *super = logfs_super(sb); + int i; + + for_each_area(i) + free_area(super->s_area[i]); + free_area(super->s_journal_area); +} + static struct logfs_area *alloc_area(struct super_block *sb) { struct logfs_area *area; @@ -923,10 +933,6 @@ void logfs_cleanup_areas(struct super_block *sb) { struct logfs_super *super = logfs_super(sb); - int i; btree_grim_visitor128(&super->s_object_alias_tree, 0, kill_alias); - for_each_area(i) - free_area(super->s_area[i]); - free_area(super->s_journal_area); } Index: logfs.h =================================================================== --- logfs.h (revision 24035) +++ logfs.h (working copy) @@ -594,6 +594,7 @@ void logfs_sync_area(struct logfs_area *area); void logfs_sync_segments(struct super_block *sb); void freeseg(struct super_block *sb, u32 segno); +void free_areas(struct super_block *sb); /* area handling */ int logfs_init_areas(struct super_block *sb);