Re: [PATCH v2] xfs: don't set v3 xflags for v2 inodes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 01, 2017 at 12:40:24PM -0700, Darrick J. Wong wrote:
> On Fri, Sep 01, 2017 at 12:29:58PM -0700, Christoph Hellwig wrote:
> > On Fri, Sep 01, 2017 at 10:52:23AM -0700, Darrick J. Wong wrote:
> > > >  {
> > > > -	unsigned int		di_flags;
> > > > -	uint64_t		di_flags2;
> > > > -
> > > >  	/* can't set PREALLOC this way, just preserve it */
> > > > -	di_flags = (ip->i_d.di_flags & XFS_DIFLAG_PREALLOC);
> > > > +	unsigned int		di_flags =
> > > > +		(ip->i_d.di_flags & XFS_DIFLAG_PREALLOC);
> > > 
> > > ip->i_d.di_flags is uint16_t, so di_flags ought to match, right?
> > 
> > The existing code uses unsigned int as seen above.  But yes, it
> > could be fixed to be a uint16_t.
> > 
> > > Otherwise, I guess this looks ok, want to send it as a real patch?
> > 
> > Sure.  Doing some quick QA runs and it will be out.
> > 
> > Note that I'll assume it'll be for a tree without the previous
> > patch, unlike current for-next..
> 
> Yeah, I'll rebase that whole mess...

...also, I assume you already fixed up:

-       di_flags2 = xfs_flags2diflags(ip, fa->fsx_xflags);
+       di_flags2 = xfs_flags2diflags2(ip, fa->fsx_xflags);

?

--D

> 
> --D
> 
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> > the body of a message to majordomo@xxxxxxxxxxxxxxx
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux