[PATCH] dax: Remove usage of the deprecated ida_simple_xxx API

2022-09-25 Thread Bo Liu
Use ida_alloc_xxx()/ida_free() instead of ida_simple_get()/ida_simple_remove(). The latter is deprecated and more verbose. Signed-off-by: Bo Liu --- drivers/dax/super.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dax/super.c b/drivers/dax/super.c index 9b5e2

[PATCH -next] nvdimm: make nd_class static

2022-09-25 Thread ruanjinjie
The symbol is not used outside of the file, so mark it static. Fixes the following warning: drivers/nvdimm/bus.c:28:14: warning: symbol 'nd_class' was not declared. Should it be static? Signed-off-by: ruanjinjie --- drivers/nvdimm/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

Re: [GIT PULL] NVDIMM and DAX fixes for 6.0-final

2022-09-25 Thread pr-tracker-bot
The pull request you sent on Sat, 24 Sep 2022 18:33:50 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm > tags/dax-and-nvdimm-fixes-v6.0-final has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4207d59567c017be284dbebc5d3fb5a2037a5df5 Thank you! --

[PATCH 3/3] mm, pmem, xfs: Introduce MF_MEM_REMOVE for unbind

2022-09-25 Thread Shiyang Ruan
This patch is inspired by Dan's "mm, dax, pmem: Introduce dev_pagemap_failure()"[1]. With the help of dax_holder and ->notify_failure() mechanism, the pmem driver is able to ask filesystem (or mapped device) on it to unmap all files in use and notify processes who are using those files. Call trac

[PATCH 2/3] fs: move drop_pagecache_sb() for others to use

2022-09-25 Thread Shiyang Ruan
xfs_notify_failure.c requires a method to invalidate all dax mappings. drop_pagecache_sb() can do this but it is a static function and only build with CONFIG_SYSCTL. Now, move it to super.c and make it available for others. And use its second argument to choose which invalidate method to use. Si

[PATCH 1/3] xfs: fix the calculation of length and end

2022-09-25 Thread Shiyang Ruan
The end should be start + length - 1. Also fix the calculation of the length when seeking for intersection of notify range and device. Signed-off-by: Shiyang Ruan Reviewed-by: Darrick J. Wong --- fs/xfs/xfs_notify_failure.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --

[PATCH v9 0/3] mm, pmem, xfs: Introduce MF_MEM_REMOVE for unbind

2022-09-25 Thread Shiyang Ruan
Changes since v8: 1. P2: rename drop_pagecache_sb() to super_drop_pagecache(). 2. P2: let super_drop_pagecache() accept invalidate method. 3. P3: invalidate all dax mappings by invalidate_inode_pages2(). 4. P3: shutdown the filesystem when it is to be removed. 5. Rebase on 6.0-rc6 + Darri