[Ocfs2-devel] [PATCH 6/6] ocfs2: Remove syncjiff field from quota info

Jan Kara jack at suse.cz
Tue Jul 21 15:55:32 PDT 2009


On Tue 21-07-09 15:24:54, Joel Becker wrote:
> On Wed, Jul 15, 2009 at 05:55:04PM +0200, Jan Kara wrote:
> > syncjiff is just a converted value of syncms. Some places which
> > are updating syncms forgot to update syncjiff as well. Since the
> > conversion is just a simple division / multiplication and it does
> > not happen frequently, just remove the syncjiff field to avoid
> > forgotten conversions.
> > 
> > Signed-off-by: Jan Kara <jack at suse.cz>
> > ---
> >  fs/ocfs2/aops.c         |    4 +++-
> >  fs/ocfs2/quota.h        |    1 -
> >  fs/ocfs2/quota_global.c |    5 ++---
> >  3 files changed, 5 insertions(+), 5 deletions(-)
> > 
> > diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
> > index b2c52b3..eaa268f 100644
> > --- a/fs/ocfs2/aops.c
> > +++ b/fs/ocfs2/aops.c
> > @@ -138,9 +138,11 @@ static int ocfs2_get_block(struct inode *inode, sector_t iblock,
> >  	mlog_entry("(0x%p, %llu, 0x%p, %d)\n", inode,
> >  		   (unsigned long long)iblock, bh_result, create);
> >  
> > -	if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE)
> > +	if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) {
> >  		mlog(ML_NOTICE, "get_block on system inode 0x%p (%lu)\n",
> >  		     inode, inode->i_ino);
> > +		dump_stack();
> > +	}
> 
> 	What's this doing here?
  Oops, that's a remainder of my debugging (I was at one point seeing this
message and it wasn't clear to me how we got there so I've added
dump_stack() there and forgot about it). I'll remove it. Thanks for
spotting this.

									Honza
-- 
Jan Kara <jack at suse.cz>
SUSE Labs, CR



More information about the Ocfs2-devel mailing list