Searched hist:ab45e7632717b811e0786e46ca5ad279cb731b66 (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/nvdimm/ |
H A D | btt.h | diff ab45e7632717b811e0786e46ca5ad279cb731b66 Wed Jul 29 15:58:08 CDT 2015 Vishal Verma <vishal.l.verma@intel.com> libnvdimm, btt: consolidate arena validation
Use arena_is_valid as a common routine for checking the validity of an info block from both discover_arenas, and nd_btt_probe.
As a result, don't check for validity of the BTT's UUID, and lbasize. The checksum in the BTT info block guarantees self-consistency, and when we're called from nd_btt_probe, we don't have a valid uuid or lbasize available to check against.
Also cleanup to return a bool instead of an int.
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
|
H A D | btt_devs.c | diff ab45e7632717b811e0786e46ca5ad279cb731b66 Wed Jul 29 15:58:08 CDT 2015 Vishal Verma <vishal.l.verma@intel.com> libnvdimm, btt: consolidate arena validation
Use arena_is_valid as a common routine for checking the validity of an info block from both discover_arenas, and nd_btt_probe.
As a result, don't check for validity of the BTT's UUID, and lbasize. The checksum in the BTT info block guarantees self-consistency, and when we're called from nd_btt_probe, we don't have a valid uuid or lbasize available to check against.
Also cleanup to return a bool instead of an int.
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
|
H A D | btt.c | diff ab45e7632717b811e0786e46ca5ad279cb731b66 Wed Jul 29 15:58:08 CDT 2015 Vishal Verma <vishal.l.verma@intel.com> libnvdimm, btt: consolidate arena validation
Use arena_is_valid as a common routine for checking the validity of an info block from both discover_arenas, and nd_btt_probe.
As a result, don't check for validity of the BTT's UUID, and lbasize. The checksum in the BTT info block guarantees self-consistency, and when we're called from nd_btt_probe, we don't have a valid uuid or lbasize available to check against.
Also cleanup to return a bool instead of an int.
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
|