xfs: set remote symlink buffer type for recovery
authorDave Chinner <dchinner@redhat.com>
Mon, 2 Sep 2013 00:32:00 +0000 (10:32 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 10 Sep 2013 17:57:09 +0000 (12:57 -0500)
commitdaf7b799a944d28a50caaa512011f5a0eb5a4076
treee4a272ebf3b4b0247acbc4c1a61739cd0490a639
parent638f44163d57f87d0905fbed7d54202beff916fc
xfs: set remote symlink buffer type for recovery

The logging of a remote symlink block does not set the buffer type
being logged, and hence on recovery the type of buffer is not
recognised and hence CRCs are not calculated after replay. This
results in log recoery throwing:

XFS (vdc): Unknown buffer type 0

errors, and subsequent reads of the symlink failing CRC
verification. Found via fsstress + godown.

Reported by: Michael L. Semon <mlsemon35@gmail.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_symlink.c