Re: [PATCH 3/3] xfs: simplify validation of the unwritten extent bit

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

 



[can you trim the quote?  Makes reading it and properly quoting it
 so much easier..]

> > +static inline bool xfs_bmbt_validate_extent(struct xfs_mount *mp, int whichfork,
> > +		struct xfs_bmbt_rec_host *ep)
> 
> Would be nice to have this function formatted the same way as most of
> the rest of the xfs functions, even if it is static inline...

It's actually the usual style for our inlines.  But if you prefer it
differently I can do that.

> Wouldn't this be better off in xfs_iflush_int (like the inline dir
> verifier) since we could prevent bad metadata from hitting the disk?
> Rather than this, which doesn't do anything on non-debug kernels.

xfs_iflush_int actually calls xfs_iflush_fork which calls
xfs_iextents_copy, so it's in the right spot already.  Converting it
from an assert to an error would have to go through these layers
that don't currently expect errors.  Note that we also call
xfs_iextents_copy from xfs_inode_item_format_data_fork /
xfs_inode_item_format_attr_fork, which are called earlier than
xfs_iflush_int, where error propagation is even worse.
--
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