linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Assigning NULL to gfn of dax_direct_access if useless
@ 2018-07-04 16:38 Huaisheng Ye
  2018-07-04 16:38 ` [PATCH v2 1/4] nvdimm/pmem: check the validity of the pointer pfn Huaisheng Ye
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Huaisheng Ye @ 2018-07-04 16:38 UTC (permalink / raw)
  To: linux-nvdimm, dan.j.williams
  Cc: ross.zwisler, willy, vishal.l.verma, dave.jiang, schwidefsky,
	heiko.carstens, viro, martin.petersen, axboe, gregkh,
	bart.vanassche, jack, linux-kernel, linux-s390, linux-fsdevel,
	colyli, chengnt, Huaisheng Ye

From: Huaisheng Ye <yehs1@lenovo.com>

Changes since v1 [1]:
* Collect Jan's reviewed-by.
* According to Dan's suggestion, update the unit test infrastructure
  tools/testing/nvdimm/pmem-dax.c for checking the validity of gfn.

[1]: https://lkml.org/lkml/2018/7/4/81

---

Some functions within fs/dax don't need to get gfn from direct_access.
Assigning NULL to gfn of dax_direct_access is more intuitive and simple
than offering a useless local variable.

So all direct_access need to check the validity of pointer pfn for NULL
assignment. If pfn equals to NULL, it doesn't need to calculate its value.

---

Huaisheng Ye (4):
  nvdimm/pmem: check the validity of the pointer pfn
  nvdimm/pmem-dax: check the validity of the pointer pfn
  s390/block/dcssblk: check the validity of the pointer pfn
  fs/dax: Assign NULL to gfn of dax_direct_access if useless

 drivers/nvdimm/pmem.c           | 3 ++-
 drivers/s390/block/dcssblk.c    | 3 ++-
 fs/dax.c                        | 9 +++------
 tools/testing/nvdimm/pmem-dax.c | 6 ++++--
 4 files changed, 11 insertions(+), 10 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-07-04 17:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-04 16:38 [PATCH v2 0/4] Assigning NULL to gfn of dax_direct_access if useless Huaisheng Ye
2018-07-04 16:38 ` [PATCH v2 1/4] nvdimm/pmem: check the validity of the pointer pfn Huaisheng Ye
2018-07-04 16:38 ` [PATCH v2 2/4] nvdimm/pmem-dax: " Huaisheng Ye
2018-07-04 16:38 ` [PATCH v2 3/4] s390/block/dcssblk: " Huaisheng Ye
2018-07-04 16:38 ` [PATCH v2 4/4] fs/dax: Assign NULL to gfn of dax_direct_access if useless Huaisheng Ye
2018-07-04 16:48 ` [PATCH v2 0/4] Assigning " Dan Williams
2018-07-04 16:55   ` Huaisheng Ye
2018-07-04 17:16     ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).