[PATCH] xfs: set cursor in xfs_ail_splice() even when AIL was empty

Dave Chinner david at fromorbit.com
Fri Jul 29 05:56:39 CDT 2011


On Thu, Jul 21, 2011 at 05:05:39PM -0500, Alex Elder wrote:
> In xfs_ail_splice(), if a cursor is provided it is updated
> to point to the last item on the list to be spliced into
> the AIL.  But if the AIL was found to be empty, the cursor
> (if provided) is just initialized instead.
> 
> There is no reason the null AIL case needs to be any different.
> And treating it the same way allows this code to be rearranged
> a bit, with a somewhat tidier result.
> 
> Signed-off-by: Alex Elder <aelder at sgi.com>

I've tested and reviewed the second version of this patch(*) and I
don't see anything problems at all, so:

Reviewed-by: Dave Chinner <dchinner at redhat.com>

Cheers,

Dave.

(*) In saving the second version, I accidentally marked the mail for
delete and then forgot to undelete it before switching mail folders
and commiting the delete. Hence I'm responding to the first mail :)
-- 
Dave Chinner
david at fromorbit.com




More information about the xfs mailing list