[Patch v9 04/10] fs: Add initial atomic write support info to statx

Hannes Reinecke hare at suse.de
Thu Jun 20 22:57:12 PDT 2024


On 6/20/24 14:53, John Garry wrote:
> From: Prasad Singamsetty <prasad.singamsetty at oracle.com>
> 
> Extend statx system call to return additional info for atomic write support
> support for a file.
> 
> Helper function generic_fill_statx_atomic_writes() can be used by FSes to
> fill in the relevant statx fields. For now atomic_write_segments_max will
> always be 1, otherwise some rules would need to be imposed on iovec length
> and alignment, which we don't want now.
> 
> Signed-off-by: Prasad Singamsetty <prasad.singamsetty at oracle.com>
> jpg: relocate bdev support to another patch
> Reviewed-by: "Darrick J. Wong" <djwong at kernel.org>
> Reviewed-by: Martin K. Petersen <martin.petersen at oracle.com>
> Signed-off-by: John Garry <john.g.garry at oracle.com>
> ---
>   fs/stat.c                 | 34 ++++++++++++++++++++++++++++++++++
>   include/linux/fs.h        |  3 +++
>   include/linux/stat.h      |  3 +++
>   include/uapi/linux/stat.h | 12 ++++++++++--
>   4 files changed, 50 insertions(+), 2 deletions(-)
> 
Reviewed-by: Hannes Reinecke <hare at suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare at suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich




More information about the Linux-nvme mailing list