Skip to content

device-dax: avoid an unnecessary check in alloc_dev_dax_range()

Zhen Lei linux-nvdimm lkml nvdimm 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 0 repliesNew
  2. v11 patch 3 repliesSuperseded

Changes in v2 from the cover letter

In v1, I use the "goto" statement to merge two identical __release_region() calls. However, the new patch https://lkml.org/lkml/2020/12/18/735 deletes one of them, the "goto" becomes worthless. So when krealloc() failed, directly call __release_region() and return error code.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1device-dax: avoid an unnecessary check in alloc_dev_dax_range()drivers/dax/bus.c+6 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/1] device-dax: avoid an unnecessary check in alloc_dev_dax_range()

v1 --> v2:
In v1, I use the "goto" statement to merge two identical __release_region() calls. However, the new patch https://lkml.org/lkml/2020/12/18/735 deletes one of them, the "goto" becomes worthless. So when krealloc() failed, directly call __release_region() and return error code.

Zhen Lei (1):
device-dax: avoid an unnecessary check in alloc_dev_dax_range()

 drivers/dax/bus.c | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)
Signature · 5 lines
2.26.0.106.g9fadedd

_______________________________________________
Linux-nvdimm mailing list -- [email protected]
To unsubscribe send an email to [email protected]