Re: [PATCH] iommu/iova: use rb_entry()

2017-01-04 Thread Joerg Roedel
On Mon, Dec 19, 2016 at 10:46:58PM +0800, Geliang Tang wrote: > To make the code clearer, use rb_entry() instead of container_of() to > deal with rbtree. > > Signed-off-by: Geliang Tang > --- > drivers/iommu/iova.c | 23 +++ > 1 file changed, 11

Re: [PATCH] iommu/iova: use rb_entry()

2017-01-04 Thread Joerg Roedel
On Mon, Dec 19, 2016 at 10:46:58PM +0800, Geliang Tang wrote: > To make the code clearer, use rb_entry() instead of container_of() to > deal with rbtree. > > Signed-off-by: Geliang Tang > --- > drivers/iommu/iova.c | 23 +++ > 1 file changed, 11 insertions(+), 12

[PATCH] iommu/iova: use rb_entry()

2016-12-19 Thread Geliang Tang
To make the code clearer, use rb_entry() instead of container_of() to deal with rbtree. Signed-off-by: Geliang Tang --- drivers/iommu/iova.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/drivers/iommu/iova.c

[PATCH] iommu/iova: use rb_entry()

2016-12-19 Thread Geliang Tang
To make the code clearer, use rb_entry() instead of container_of() to deal with rbtree. Signed-off-by: Geliang Tang --- drivers/iommu/iova.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/drivers/iommu/iova.c b/drivers/iommu/iova.c index