Re: [PATCH v7 11/14] xfs: add xfs_file_dio_write_atomic()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21/04/2025 05:00, Darrick J. Wong wrote:
@@ -843,6 +909,8 @@ xfs_file_dio_write(
  		return xfs_file_dio_write_unaligned(ip, iocb, from);
  	if (xfs_is_zoned_inode(ip))
  		return xfs_file_dio_write_zoned(ip, iocb, from);
What happens to an IOCB_ATOMIC write to a zoned file?  I think the
ioend for an atomic write to a zoned file involves a similar change as
an outofplace atomic write to a file (one big transaction to absorb
all the mapping changes) but I don't think the zoned code quite does
that...?

Correct. For now, I don't think that we should try to support zoned device atomic writes. However we don't have proper checks for this. How about adding a xfs_has_zoned() check in xfs_get_atomic_write_{min, max, opt}()?

Thanks,
John




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux