On 2011-02-15 09:58, Christoph Hellwig wrote: > On Tue, Feb 15, 2011 at 09:48:26AM -0500, Fred Isaman wrote: >> pnfs_free_lseg_list, besides calling free_lseg, also potentially >> removes the layout from the clients list of inodes with layouts. > > Looks like the routine than changed from the mainline variant > I looked at. I took a quick look at the one from pnfs-submit, > which looks quite suspicios, as it special cases the first item > on the list without a good explanation and then iterates the list. > > Does your tree have another caller of pnfs_free_lseg_list? If not > please just open code the right thing in the caller, instead of > pretending we're dealing with a list if you're always dealing with > one entry. If the tree grows a caller that needs to deal with a list > with more than 1 entry we can revisit if there's a point in sharing > code. > Agreed. Benny -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html