]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xfs: fix reading of wrapped log data
authorDave Chinner <dchinner@redhat.com>
Fri, 2 Nov 2012 00:38:44 +0000 (11:38 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:14:25 +0000 (13:14 -0800)
commit11b34bb13aebb075ba47e3a292443ab3cd9638f7
tree61f848281bb31935473d65e359a85c7a8550cc30
parent87725c35384baf9b6fbea6342807aab7071b0462
xfs: fix reading of wrapped log data

commit 6ce377afd1755eae5c93410ca9a1121dfead7b87 upstream.

Commit 4439647 ("xfs: reset buffer pointers before freeing them") in
3.0-rc1 introduced a regression when recovering log buffers that
wrapped around the end of log. The second part of the log buffer at
the start of the physical log was being read into the header buffer
rather than the data buffer, and hence recovery was seeing garbage
in the data buffer when it got to the region of the log buffer that
was incorrectly read.

Reported-by: Torsten Kaiser <just.for.lkml@googlemail.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_log_recover.c