Re: [dm-devel] [PATCH] audit: correct the AUDIT_DM_CTRL and AUDIT_DM_EVENT numbering

2021-10-19 Thread Paul Moore
On Tue, Oct 19, 2021 at 9:15 PM Paul Moore wrote: > > Due to conflict with the audit and SELinux trees the device mapper > audit record types need to be renumbered before landing in Linus' > tree. > > Link: >

[dm-devel] [PATCH] audit: correct the AUDIT_DM_CTRL and AUDIT_DM_EVENT numbering

2021-10-19 Thread Paul Moore
Due to conflict with the audit and SELinux trees the device mapper audit record types need to be renumbered before landing in Linus' tree. Link: https://lore.kernel.org/lkml/cahc9vhtlmzdqpqsj+vybnua1x13uk_ttcixkz7wwyeqmxvo...@mail.gmail.com/ Fixes: c1d7fa96e74b ("dm: introduce audit event module

Re: [dm-devel] [PATCH 07/11] dax: remove dax_capable

2021-10-19 Thread Darrick J. Wong
On Mon, Oct 18, 2021 at 06:40:50AM +0200, Christoph Hellwig wrote: > Just open code the block size and dax_dev == NULL checks in the callers. > > Signed-off-by: Christoph Hellwig > --- > drivers/dax/super.c | 36 > drivers/md/dm-table.c| 22

[dm-devel] [PATCH 3/4] dm-log-writes: use memcpy_from_bvec in log_writes_map

2021-10-19 Thread Christoph Hellwig
Use memcpy_from_bvec instead of open coding the logic. Signed-off-by: Christoph Hellwig --- drivers/md/dm-log-writes.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/md/dm-log-writes.c b/drivers/md/dm-log-writes.c index d93a4db235124..eeaf729287f06 100644 ---

[dm-devel] [PATCH 4/4] dm-verity: use bvec_kmap_local in verity_for_bv_block

2021-10-19 Thread Christoph Hellwig
Using local kmaps slightly reduces the chances to stray writes, and the bvec interface cleans up the code a little bit. Signed-off-by: Christoph Hellwig --- drivers/md/dm-verity-target.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/md/dm-verity-target.c

[dm-devel] [PATCH 1/4] dm-integrity: use bvec_kmap_local in integrity_metadata

2021-10-19 Thread Christoph Hellwig
Using local kmaps slightly reduces the chances to stray writes, and the bvec interface cleans up the code a little bit. Signed-off-by: Christoph Hellwig --- drivers/md/dm-integrity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-integrity.c

[dm-devel] [PATCH 2/4] dm-integrity: use bvec_kmap_local in __journal_read_write

2021-10-19 Thread Christoph Hellwig
Using local kmaps slightly reduces the chances to stray writes, and the bvec interface cleans up the code a little bit. Signed-off-by: Christoph Hellwig --- drivers/md/dm-integrity.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/md/dm-integrity.c

[dm-devel] use bio kmap helpers in device mapper

2021-10-19 Thread Christoph Hellwig
Hi Mike, this series converts device mapper to use the bio kmap helpers instead of the direct use of kmap_atomic. Diffstat: dm-integrity.c | 10 +- dm-log-writes.c|6 ++ dm-verity-target.c |6 +++--- 3 files changed, 10 insertions(+), 12 deletions(-) -- dm-devel

Re: [PATCH 06/11] xfs: factor out a xfs_setup_dax helper

2021-10-19 Thread Christoph Hellwig
On Mon, Oct 18, 2021 at 09:43:51AM -0700, Darrick J. Wong wrote: > > --- a/fs/xfs/xfs_super.c > > +++ b/fs/xfs/xfs_super.c > > @@ -339,6 +339,32 @@ xfs_buftarg_is_dax( > > bdev_nr_sectors(bt->bt_bdev)); > > } > > > > +static int > > +xfs_setup_dax( > > /me wonders if this

Re: [dm-devel] don't use ->bd_inode to access the block device size v3

2021-10-19 Thread Kari Argillander
On Mon, Oct 18, 2021 at 11:53:08AM -0600, Jens Axboe wrote: snip.. > diff --git a/include/linux/genhd.h b/include/linux/genhd.h > index 7b0326661a1e..a967b3fb3c71 100644 > --- a/include/linux/genhd.h > +++ b/include/linux/genhd.h > @@ -236,14 +236,14 @@ static inline sector_t