Searched hist:dc1baa715bbfbb1902da942d06497e79b40e7bc7 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/fs/xfs/ |
H A D | xfs_log_recover.c | diff dc1baa715bbfbb1902da942d06497e79b40e7bc7 Wed Mar 28 19:48:08 CDT 2018 Eric Sandeen <sandeen@sandeen.net> xfs: do not log/recover swapext extent owner changes for deleted inodes
Today if we run xfs_fsr and crash[1], log replay can fail because the recovery code tries to instantiate the donor inode from disk to replay the swapext, but it's been deleted and we get verifier failures when we try to read the inode off disk with i_mode == 0.
This fixes both sides: We don't log the swapext change if the inode has been deleted, and we don't try to recover it either.
[1] or if systemd doesn't cleanly unmount root, as it is wont to do ...
Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
|
H A D | xfs_inode.c | diff dc1baa715bbfbb1902da942d06497e79b40e7bc7 Wed Mar 28 19:48:08 CDT 2018 Eric Sandeen <sandeen@sandeen.net> xfs: do not log/recover swapext extent owner changes for deleted inodes
Today if we run xfs_fsr and crash[1], log replay can fail because the recovery code tries to instantiate the donor inode from disk to replay the swapext, but it's been deleted and we get verifier failures when we try to read the inode off disk with i_mode == 0.
This fixes both sides: We don't log the swapext change if the inode has been deleted, and we don't try to recover it either.
[1] or if systemd doesn't cleanly unmount root, as it is wont to do ...
Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
|