[Ocfs2-tools-devel] [PATCH 12/13] fsck.ocfs2: Pre-cache inodes in reverse order.
Joel Becker
Joel.Becker at oracle.com
Fri Jun 19 16:03:33 PDT 2009
On Fri, Jun 19, 2009 at 03:50:57PM -0700, Joel Becker wrote:
> On Fri, Jun 19, 2009 at 03:26:53PM -0700, Sunil Mushran wrote:
> > What if the chain record is empty? This patch does not mesh
> > with the PR_CHAIN_EMPTY case.
>
> I fixed it to ... oh, wait, we don't go back around to fix the
> bg_chain value. Is that what you mean?
Specifically:
> > >@@ -782,7 +788,6 @@ static errcode_t verify_chain_alloc(o2fsck_state *ost,
> > > *cr = cl->cl_recs[cl->cl_next_free_rec - 1];
> > > memset(&cl->cl_recs[cl->cl_next_free_rec - 1],
> > > 0, sizeof(struct ocfs2_chain_rec));
> > >- i--;
+ i++;
> > > }
> > > cl->cl_next_free_rec--;
> >
Joel
--
Life's Little Instruction Book #314
"Never underestimate the power of forgiveness."
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-tools-devel
mailing list