Re: [PATCH 06/11] xfs: don't use delalloc extents for COW on files with extsize hints

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

 



On Wed, Dec 19, 2018 at 08:29:24PM +0100, Christoph Hellwig wrote:
> On Tue, Dec 18, 2018 at 01:44:25PM -0800, Darrick J. Wong wrote:
> > > +	uint			*lockmode,
> > > +	unsigned		flags)
> > 
> > I'm not thrilled with passing iomap flags into the reflink code here...
> 
> So what is the alternative?  A non-descriptive bool argument?

More or less what I described below. :)

> > ...because I feel that it's easy to miss the subtlety here that for
> > buffered writes we don't care if the cow extent is unwritten or written,
> > but for directio we very /much/ care that the cow extent is written,
> > because we're writing to it immediately.  Can this grow a comment to
> > reinforce why we skip the conversion?
> 
> Sure.
> 
> > Also, can we call this 'iomap_flags' to make it clearer which flags
> > we're talking about?
> 
> Sure.

Cool!

--D



[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