]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: skip pointless CRC updates after verifier failures
authorEric Sandeen <sandeen@redhat.com>
Thu, 27 Feb 2014 04:14:31 +0000 (15:14 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 27 Feb 2014 04:14:31 +0000 (15:14 +1100)
commit3267e4a62905df4791a494bc2e991967ec1a364c
treebc122db2c8798f719e48a3713c0a2b9fb00b1a20
parentc183b7b053151efab506ae2098e7700c5737dae7
xfs: skip pointless CRC updates after verifier failures

Most write verifiers don't update CRCs after the verifier
has failed and the buffer has been marked in error.  These
two didn't, but should.

Add returns to the verifier failure block, since the buffer
won't be written anyway.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_alloc_btree.c
fs/xfs/xfs_ialloc_btree.c