On Tue, Jun 30, 2020 at 11:19:42AM -0700, Darrick J. Wong wrote: > On Tue, Jun 23, 2020 at 07:50:15PM +1000, Dave Chinner wrote: ... > > + > > +static uint64_t > > +xfs_iunlink_item_sort( > > + struct xfs_log_item *lip) > > +{ > > + return IUL_ITEM(lip)->iu_ino; > > +} > > Oh, I see, ->iop_sort is supposed to return a sorting key for each log > item so that we can reorder the iunlink items to take locks in the > correct order. Yes, so I'm not sure the naming of ->iop_sort... When I first saw the name, I thought it would be a compare function. (but after I read the code of xfs_trans_precommit_sort(), I found I'm wrong...)