diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-10-04 16:40:01 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2022-10-04 16:40:01 +1100 |
commit | e033f40be262c4d227f8fbde52856e1d8646872b (patch) | |
tree | 138bf94d6210591be87f7ec987dc59c5a8c9a779 /fs/ext2/xattr_user.c | |
parent | c098576f5f63bc0ee2424bba50892514a71d54e8 (diff) | |
download | linux-e033f40be262c4d227f8fbde52856e1d8646872b.tar.bz2 |
xfs: on memory failure, only shut down fs after scanning all mappings
xfs_dax_failure_fn is used to scan the filesystem during a memory
failure event to look for memory mappings to revoke. Unfortunately,
if it encounters an rmap record for filesystem metadata, it will
shut down the filesystem and the scan immediately. This means that
we don't complete the mapping revocation scan and instead leave live
mappings to failed memory. Fix the function to defer the shutdown
until after we've finished culling mappings.
While we're at it, add the usual "xfs_" prefix to struct
failure_info, and actually initialize mf_flags.
Fixes: 6f643c57d57c ("xfs: implement ->notify_failure() for XFS")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/ext2/xattr_user.c')
0 files changed, 0 insertions, 0 deletions