Files
linux/fs
Darrick J. Wong 4a82db7a4b xfs: conditionally allow FS_XFLAG_REALTIME changes if S_DAX is set
commit 8d16762047c627073955b7ed171a36addaf7b1ff upstream.

If a file has the S_DAX flag (aka fsdax access mode) set, we cannot
allow users to change the realtime flag unless the datadev and rtdev
both support fsdax access modes.  Even if there are no extents allocated
to the file, the setattr thread could be racing with another thread
that has already started down the write code paths.

Fixes: ba23cba9b3 ("fs: allow per-device dax status checking for filesystems")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-27 13:58:45 +01:00
..
2024-08-19 06:04:25 +02:00
2024-12-09 10:32:42 +01:00
2024-10-22 15:46:20 +02:00
2024-08-03 08:54:22 +02:00
2024-12-14 20:00:21 +01:00
2023-08-31 12:07:34 -05:00
2024-08-19 06:04:25 +02:00
2024-02-23 09:25:13 +01:00
2024-12-14 19:59:58 +01:00
2023-08-08 19:36:51 +02:00
2023-08-21 13:46:25 -07:00
2023-08-14 18:48:02 +02:00
2023-08-19 12:12:12 +02:00
2023-08-02 09:13:09 -06:00
2023-07-13 10:28:04 +02:00
2023-08-15 08:32:45 +02:00
2024-08-19 06:04:25 +02:00