• Vishal Verma's avatar
    dax: for truncate/hole-punch, do zeroing through the driver if possible · 4b0228fa
    Vishal Verma authored
    In the truncate or hole-punch path in dax, we clear out sub-page ranges.
    If these sub-page ranges are sector aligned and sized, we can do the
    zeroing through the driver instead so that error-clearing is handled
    automatically.
    
    For sub-sector ranges, we still have to rely on clear_pmem and have the
    possibility of tripping over errors.
    
    Cc: Dan Williams <dan.j.williams@intel.com>
    Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
    Cc: Jeff Moyer <jmoyer@redhat.com>
    Cc: Christoph Hellwig <hch@infradead.org>
    Cc: Dave Chinner <david@fromorbit.com>
    Cc: Jan Kara <jack@suse.cz>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Reviewed-by: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: default avatarVishal Verma <vishal.l.verma@intel.com>
    4b0228fa
dax.txt 5.71 KB