Re: [PATCH v3 4/5] ext2: Add alignment check for DAX mount

From: Jan Kara
Date: Mon May 09 2016 - 04:31:34 EST


On Thu 05-05-16 18:29:55, Toshi Kani wrote:
> When a partition is not aligned by 4KB, mount -o dax succeeds,
> but any read/write access to the filesystem fails, except for
> metadata update.
>
> Call bdev_supports_dax() to perform proper precondition checks
> which includes this partition alignment check.
>
> Signed-off-by: Toshi Kani <toshi.kani@xxxxxxx>
> Cc: Jan Kara <jack@xxxxxxx>
> Cc: Dan Williams <dan.j.williams@xxxxxxxxx>
> Cc: Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx>
> Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx>
> Cc: Boaz Harrosh <boaz@xxxxxxxxxxxxx>

Looks good to me. Since this patch depends on the first two in your series,
just feel free to add:

Reviewed-by: Jan Kara <jack@xxxxxxx>

and merge it along with other patches. I've removed the ext2 patch from
the previous version from my tree.

Honza
--
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR