diff options
author | 2024-11-04 16:14:04 -0800 | |
---|---|---|
committer | 2024-11-04 16:22:10 -0800 | |
commit | f096207d327692a066954435dafb4bedbc031d9e (patch) | |
tree | 7555bf813722d62fb5e9f8fdba0cdc7fca78052e /net/socket.c | |
parent | xfs: Support atomic write for statx (diff) | |
download | linux-rng-f096207d327692a066954435dafb4bedbc031d9e.tar.xz linux-rng-f096207d327692a066954435dafb4bedbc031d9e.zip |
xfs: Validate atomic writes
Validate that an atomic write adheres to length/offset rules. Currently
we can only write a single FS block.
For an IOCB with IOCB_ATOMIC set to get as far as xfs_file_write_iter(),
FMODE_CAN_ATOMIC_WRITE will need to be set for the file; for this,
ATOMICWRITES flags would also need to be set for the inode.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions