diff options
author | John Garry <john.g.garry@oracle.com> | 2024-11-04 16:14:04 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@djwong.org> | 2024-11-04 16:22:10 -0800 |
commit | f096207d327692a066954435dafb4bedbc031d9e (patch) | |
tree | 7555bf813722d62fb5e9f8fdba0cdc7fca78052e /rust/helpers/task.c | |
parent | 6432c6e723fffd93e5cb65117ff48a3aa734e259 (diff) | |
download | linux-f096207d327692a066954435dafb4bedbc031d9e.tar.gz linux-f096207d327692a066954435dafb4bedbc031d9e.tar.bz2 linux-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 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions