diff options
| author | Christoph Hellwig <hch@lst.de> | 2026-11-03 15:08:09 +0100 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-11-10 11:21:30 +0100 |
| commit | 369726f6be714852f4e73882a351938bd3f8c4cd (patch) | |
| tree | d4a10c0b12b3227b11d0724801f94ab5a1475c0a /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | f9bfe5af596a5ef6fc745c30bda41f9a109ed16d (diff) | |
xfs: always call xfs_update_stable_writes in xfs_ioctl_setattr_xflags
Currently xfs_update_stable_writes() is never called when the RT flag is
flipped because xfs_ioctl_setattr_xflags() updates ip->i_diflags before
comparing the rtflag variable to XFS_IS_REALTIME_INODE(ip), and thus
the stable flag can be set incorretly when flipping the realtime bit
on an existing file.
Fix this by unconditionally calling xfs_update_stable_writes for regular
files.
Fixes: d528a6c1d4b6 ("xfs: data checksums require stable writes")
Reported-by: Wilfred Mallawa <wilfred.opensource@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
