diff options
author | Pankaj Raghav <[email protected]> | 2024-08-22 15:50:16 +0200 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2024-09-02 16:19:44 +0200 |
commit | 79012cfa00b50ca80fb9f399f3c54b2185d728be (patch) | |
tree | 65a9d6be4c96129e5e40f9705908efc1abafcd8b /lib/crypto/mpi/mpiutil.c | |
parent | de631e1a8b71017b8a12b57d07db82e4052555af (diff) |
xfs: expose block size in stat
For block size larger than page size, the unit of efficient IO is
the block size, not the page size. Leaving stat() to report
PAGE_SIZE as the block size causes test programs like fsx to issue
illegal ranges for operations that require block size alignment
(e.g. fallocate() insert range). Hence update the preferred IO size
to reflect the block size in this case.
This change is based on a patch originally from Dave Chinner.[1]
[1] https://lwn.net/ml/linux-fsdevel/[email protected]/
Signed-off-by: Pankaj Raghav <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Darrick J. Wong <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Daniel Gomez <[email protected]>
Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions