[XFS] remove bhv_lookup, _range version works aswell and has more useful
semantics. SGI-PV: 954580 SGI-Modid: xfs-linux-melb:xfs-kern:26563a Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nathan Scott <nathans@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
This commit is contained in:

committed by
Tim Shimmin

parent
1121b219bf
commit
fe48cae9ed
@@ -109,26 +109,6 @@ bhv_remove_not_first(bhv_head_t *bhp, bhv_desc_t *bdp)
|
||||
prev->bd_next = bdp->bd_next; /* remove from after prev */
|
||||
}
|
||||
|
||||
/*
|
||||
* Look for a specific ops vector on the specified behavior chain.
|
||||
* Return the associated behavior descriptor. Or NULL, if not found.
|
||||
*/
|
||||
bhv_desc_t *
|
||||
bhv_lookup(bhv_head_t *bhp, void *ops)
|
||||
{
|
||||
bhv_desc_t *curdesc;
|
||||
|
||||
for (curdesc = bhp->bh_first;
|
||||
curdesc != NULL;
|
||||
curdesc = curdesc->bd_next) {
|
||||
|
||||
if (curdesc->bd_ops == ops)
|
||||
return curdesc;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Looks for the first behavior within a specified range of positions.
|
||||
* Return the associated behavior descriptor. Or NULL, if none found.
|
||||
|
Reference in New Issue
Block a user