aboutsummaryrefslogtreecommitdiff
path: root/fs/open.c
diff options
context:
space:
mode:
authorDarrick J. Wong2017-04-03 12:22:20 -0700
committerDarrick J. Wong2017-04-03 12:22:20 -0700
commit78420281a9d74014af7616958806c3aba056319e (patch)
tree1fbf74e9cbb09f79dc8eae464994f6731199fdd2 /fs/open.c
parent630a04e79dd41ff746b545d4fc052e0abb836120 (diff)
xfs: rework the inline directory verifiers
The inline directory verifiers should be called on the inode fork data, which means after iformat_local on the read side, and prior to ifork_flush on the write side. This makes the fork verifier more consistent with the way buffer verifiers work -- i.e. they will operate on the memory buffer that the code will be reading and writing directly. Furthermore, revise the verifier function to return -EFSCORRUPTED so that we don't flood the logs with corruption messages and assert notices. This has been a particular problem with xfs/348, which triggers the XFS_WANT_CORRUPTED_RETURN assertions, which halts the kernel when CONFIG_XFS_DEBUG=y. Disk corruption isn't supposed to do that, at least not in a verifier. Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/open.c')
0 files changed, 0 insertions, 0 deletions