OSDN Git Service

xfs: dquot recovery needs verifiers
authorDave Chinner <dchinner@redhat.com>
Mon, 4 Aug 2014 02:59:31 +0000 (12:59 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 4 Aug 2014 02:59:31 +0000 (12:59 +1000)
commitad3714b82c631a34724da09a7daa53afcab952fa
tree8f19be2ba9e28ce7d943d0cefc48a745004f5c10
parent5fd364fee81a7888af806e42ed8a91c845894f2d
xfs: dquot recovery needs verifiers

dquot recovery should add verifiers to the dquot buffers that it
recovers changes into. Unfortunately, it doesn't attached the
verifiers to the buffers in a consistent manner. For example,
xlog_recover_dquot_pass2() reads dquot buffers without a verifier
and then writes it without ever having attached a verifier to the
buffer.

Further, dquot buffer recovery may write a dquot buffer that has not
been modified, or indeed, shoul dbe written because quotas are not
enabled and hence changes to the buffer were not replayed. In this
case, we again write buffers without verifiers attached because that
doesn't happen until after the buffer changes have been replayed.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_log_recover.c