[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200330123643.17120-1-richard.weiyang@gmail.com>
Date: Mon, 30 Mar 2020 12:36:34 +0000
From: Wei Yang <richard.weiyang@...il.com>
To: willy@...radead.org
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Wei Yang <richard.weiyang@...il.com>
Subject: [PATCH 0/9] XArray: several cleanups
Trivial cleanup for XArray.
No functional change.
Wei Yang (9):
XArray: fix comment on Zero/Retry entry
XArray: simplify the calculation of shift
XArray: handle a NULL head by itself
XArray: don't expect to have more nr_values than count
XArray: entry in last level is not expected to be a node
XArray: internal node is a xa_node when it is bigger than
XA_ZERO_ENTRY
XArray: the NULL xa_node condition is handled in xas_top
XArray: take xas_error() handling for clearer logic
XArray: adjust xa_offset till it gets the correct node
include/linux/xarray.h | 6 +++---
lib/xarray.c | 31 ++++++++++++-------------------
2 files changed, 15 insertions(+), 22 deletions(-)
--
2.23.0
Powered by blists - more mailing lists