dm bufio: relax alignment constraint on slab cache
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 15 Mar 2018 21:22:00 +0000 (17:22 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Apr 2018 19:04:25 +0000 (15:04 -0400)
commit6b5e718cc138ef691e91685535e3ba776acc4893
treeb4ce89d2c1d449814ee18ca21a5f358c9388822a
parent21bb13276768da7925c0b532037e071877e4fb4d
dm bufio: relax alignment constraint on slab cache

The I/O buffer doesn't have to be aligned on block size granularity,
relax alignment to ARCH_KMALLOC_MINALIGN (required to allow DMA from
slab cache memory on some architectures).

Also, set SLAB_RECLAIM_ACCOUNT so that the memory allocated from the
cache is accounted as reclaimable and doesn't inflate the 'used' entry
in the free command.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-bufio.c