From Hakim AL Mady
by Hakim Al-Mady
Hello Sir/Madam ,
How are you doing ? My name is Hakim Al Mady the Executive Director, and head of Investor Relations at Al Rayan Investment LLC United Kingdom.
I have a proposal which might interest you. Kindly get back to me via my email account for more details.
Thank you and have a wonderful day
Sincerely,
Hakim Al Mady
4 years, 7 months
[PATCH v2 0/4] dax: require 'struct page' and other fixups
by Dan Williams
Changes since v1 [1]:
* quiet bdev_dax_supported() in favor of error messages emitted by the
caller (Jeff)
* fix leftover parentheses in vma_merge (Jeff)
* improve the changelog for "dax: stop using VM_MIXEDMAP for dax"
[1]: https://lists.01.org/pipermail/linux-nvdimm/2017-September/012645.html
---
Prompted by a recent change to add more protection around setting up
'vm_flags' for a dax vma [1], rework the implementation to remove the
requirement to set VM_MIXEDMAP and VM_HUGEPAGE.
VM_MIXEDMAP is used by dax to direct mm paths like vm_normal_page() that
the memory page it is dealing with is not typical memory from the linear
map. The get_user_pages_fast() path, since it does not resolve the vma,
is already using {pte,pmd}_devmap() as a stand-in for VM_MIXEDMAP, so we
use that as a VM_MIXEDMAP replacement in some locations. In the cases
where there is no pte to consult we fallback to using vma_is_dax() to
detect the VM_MIXEDMAP special case.
This patch series passes a run of the ndctl unit test suite and the
'mmap.sh' [2] test in particular. 'mmap.sh' tries to catch dependencies
on VM_MIXEDMAP and {pte,pmd}_devmap().
[1]: https://lkml.org/lkml/2017/9/25/638
[2]: https://github.com/pmem/ndctl/blob/master/test/mmap.sh
---
Dan Williams (4):
dax: quiet bdev_dax_supported()
dax: disable filesystem dax on devices that do not map pages
dax: stop using VM_MIXEDMAP for dax
dax: stop using VM_HUGEPAGE for dax
drivers/dax/device.c | 1 -
drivers/dax/super.c | 15 +++++++++++----
fs/ext2/file.c | 1 -
fs/ext4/file.c | 1 -
fs/xfs/xfs_file.c | 2 --
mm/huge_memory.c | 8 ++++----
mm/ksm.c | 3 +++
mm/madvise.c | 2 +-
mm/memory.c | 20 ++++++++++++++++++--
mm/migrate.c | 3 ++-
mm/mlock.c | 3 ++-
mm/mmap.c | 3 ++-
12 files changed, 43 insertions(+), 19 deletions(-)
4 years, 7 months
[ndctl PATCH] ndctl: fix static analysis report, unchecked sscanf
by Dan Williams
Static analysis flags some occasions of unchecked sscanf return value.
Cc: Yasunori Goto <y-goto(a)jp.fujitsu.com>
Signed-off-by: Dan Williams <dan.j.williams(a)intel.com>
---
util/json.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/util/json.c b/util/json.c
index d1ee351546b9..0c92c3b49c71 100644
--- a/util/json.c
+++ b/util/json.c
@@ -374,11 +374,12 @@ static int compare_dimm_number(const void *p1, const void *p2)
const char *dimm2_name = ndctl_dimm_get_devname(dimm2);
int num1, num2;
- sscanf(dimm1_name, "nmem%d", &num1);
- sscanf(dimm2_name, "nmem%d", &num2);
+ if (sscanf(dimm1_name, "nmem%d", &num1) != 1)
+ num1 = 0;
+ if (sscanf(dimm2_name, "nmem%d", &num2) != 1)
+ num2 = 0;
return num1 - num2;
-
}
static struct json_object *badblocks_to_jdimms(struct ndctl_region *region,
4 years, 7 months
[PATCH 0/7] re-enable XFS per-inode DAX
by Ross Zwisler
This series does the work needed to safely re-enable the XFS per-inode DAX
flag. This includes fixes to make use of the DAX inode flag more safe and
consistent, fixes to the read and write I/O path locking to make S_DAX
transitions safe, and some code that prevents the DAX inode flag from
transitioning when any mappings are set up.
This series has passed my fstests regression testing both with and without
DAX, and it also passes Christoph's regression test for the inode flag:
https://www.spinics.net/lists/linux-xfs/msg10124.html
My goal is to get feedback on this approach and on the XFS implementation,
and then to do a similar implementation for ext4 based on my previous ext4
DAX inode flag patches:
https://patchwork.kernel.org/patch/9939743/
These patches apply cleanly to v4.14-rc2.
Ross Zwisler (7):
xfs: always use DAX if mount option is used
xfs: validate bdev support for DAX inode flag
xfs: protect S_DAX transitions in XFS read path
xfs: protect S_DAX transitions in XFS write path
xfs: introduce xfs_is_dax_state_changing
mm, fs: introduce file_operations->post_mmap()
xfs: re-enable XFS per-inode DAX
fs/xfs/xfs_file.c | 172 ++++++++++++++++++++++-------------------------------
fs/xfs/xfs_ioctl.c | 47 ++++++++++++---
include/linux/fs.h | 1 +
mm/mmap.c | 2 +
4 files changed, 114 insertions(+), 108 deletions(-)
--
2.9.5
4 years, 7 months