diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-06-05 06:09:08 +0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-06-06 19:51:19 +0400 |
commit | ad868afddb908a5d4015c6b7637721b48fb9c8f9 (patch) | |
tree | 8a8f9f5407f395c8b5619ab6c72116e65cbbf36f /fs/eventfd.c | |
parent | 75406170751b4de88a01f73dda56efa617ddd5d7 (diff) | |
download | linux-ad868afddb908a5d4015c6b7637721b48fb9c8f9.tar.xz |
xfs: inode unlinked list needs to recalculate the inode CRC
The inode unlinked list manipulations operate directly on the inode
buffer, and so bypass the inode CRC calculation mechanisms. Hence an
inode on the unlinked list has an invalid CRC. Fix this by
recalculating the CRC whenever we modify an unlinked list pointer in
an inode, ncluding during log recovery. This is trivial to do and
results in unlinked list operations always leaving a consistent
inode in the buffer.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
(cherry picked from commit 0a32c26e720a8b38971d0685976f4a7d63f9e2ef)
Diffstat (limited to 'fs/eventfd.c')
0 files changed, 0 insertions, 0 deletions