https://github.com/torvalds/linux
Revision 9c421ef3f6b30ab912eaaa3c3d20cfb921fd8c8f authored by Hongbo Li on 18 July 2024, 08:32:43 UTC, committed by Gao Xiang on 26 July 2024, 10:47:22 UTC
Add support for STATX_DIOALIGN to EROFS, so that direct I/O
alignment restrictions are exposed to userspace in a generic
way.

[Before]
```
./statx_test /mnt/erofs/testfile
statx(/mnt/erofs/testfile) = 0
dio mem align:0
dio offset align:0
```

[After]
```
./statx_test /mnt/erofs/testfile
statx(/mnt/erofs/testfile) = 0
dio mem align:512
dio offset align:512
```

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240718083243.2485437-1-hsiangkao@linux.alibaba.com
1 parent a3c10be
Raw File
Tip revision: 9c421ef3f6b30ab912eaaa3c3d20cfb921fd8c8f authored by Hongbo Li on 18 July 2024, 08:32:43 UTC
erofs: support STATX_DIOALIGN
Tip revision: 9c421ef
.get_maintainer.ignore
Alan Cox <alan@lxorguk.ukuu.org.uk>
Alan Cox <root@hraefn.swansea.linux.org.uk>
Christoph Hellwig <hch@lst.de>
Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Marc Gonzalez <marc.w.gonzalez@free.fr>
back to top