• Dan Williams's avatar
    device-dax: add an 'align' attribute · 6d82120f
    Dan Williams authored
    
    
    Introduce a device align attribute.  While doing so, rename the region
    align attribute to be more explicitly named as so, but keep it named as
    @align to retain the API for tools like daxctl.
    
    Changes on align may not always be valid, when say certain mappings were
    created with 2M and then we switch to 1G.  So, we validate all ranges
    against the new value being attempted, post resizing.
    Signed-off-by: default avatarJoao Martins <joao.m.martins@oracle.com>
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Cc: Andy Lutomirski <luto@kernel.org>
    Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Cc: Ard Biesheuvel <ardb@kernel.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Ben Skeggs <bskeggs@redhat.com>
    Cc: Bjorn Helgaas <bhelgaas@google.com>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
    Cc: Brice Goglin <Brice.Goglin@inria.fr>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc...
    6d82120f
dax-private.h 2.84 KB