aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_attr_leaf.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-11-12 06:54:10 -0500
committerBen Myers <bpm@sgi.com>2012-11-15 22:34:36 -0500
commit4bb20a83a2a5ac4dcb62780c9950e47939956126 (patch)
tree2eef49464d5d58a54ab0bd0299e5054e8b657ce6 /fs/xfs/xfs_attr_leaf.c
parentc6319198702350a2215a8c0cacd6cc4283728a1b (diff)
xfs: add verifier callback to directory read code
Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Phil White <pwhite@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_attr_leaf.c')
-rw-r--r--fs/xfs/xfs_attr_leaf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/xfs/xfs_attr_leaf.c b/fs/xfs/xfs_attr_leaf.c
index 4bfc732bc9c9..ba2b9a2cd236 100644
--- a/fs/xfs/xfs_attr_leaf.c
+++ b/fs/xfs/xfs_attr_leaf.c
@@ -871,7 +871,7 @@ xfs_attr_leaf_to_node(xfs_da_args_t *args)
871 if (error) 871 if (error)
872 goto out; 872 goto out;
873 error = xfs_da_read_buf(args->trans, args->dp, 0, -1, &bp1, 873 error = xfs_da_read_buf(args->trans, args->dp, 0, -1, &bp1,
874 XFS_ATTR_FORK); 874 XFS_ATTR_FORK, NULL);
875 if (error) 875 if (error)
876 goto out; 876 goto out;
877 ASSERT(bp1 != NULL); 877 ASSERT(bp1 != NULL);
@@ -1642,7 +1642,7 @@ xfs_attr_leaf_toosmall(xfs_da_state_t *state, int *action)
1642 if (blkno == 0) 1642 if (blkno == 0)
1643 continue; 1643 continue;
1644 error = xfs_da_read_buf(state->args->trans, state->args->dp, 1644 error = xfs_da_read_buf(state->args->trans, state->args->dp,
1645 blkno, -1, &bp, XFS_ATTR_FORK); 1645 blkno, -1, &bp, XFS_ATTR_FORK, NULL);
1646 if (error) 1646 if (error)
1647 return(error); 1647 return(error);
1648 ASSERT(bp != NULL); 1648 ASSERT(bp != NULL);
@@ -2519,7 +2519,7 @@ xfs_attr_leaf_clearflag(xfs_da_args_t *args)
2519 * Set up the operation. 2519 * Set up the operation.
2520 */ 2520 */
2521 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp, 2521 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp,
2522 XFS_ATTR_FORK); 2522 XFS_ATTR_FORK, NULL);
2523 if (error) { 2523 if (error) {
2524 return(error); 2524 return(error);
2525 } 2525 }
@@ -2584,7 +2584,7 @@ xfs_attr_leaf_setflag(xfs_da_args_t *args)
2584 * Set up the operation. 2584 * Set up the operation.
2585 */ 2585 */
2586 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp, 2586 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp,
2587 XFS_ATTR_FORK); 2587 XFS_ATTR_FORK, NULL);
2588 if (error) { 2588 if (error) {
2589 return(error); 2589 return(error);
2590 } 2590 }
@@ -2641,7 +2641,7 @@ xfs_attr_leaf_flipflags(xfs_da_args_t *args)
2641 * Read the block containing the "old" attr 2641 * Read the block containing the "old" attr
2642 */ 2642 */
2643 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp1, 2643 error = xfs_da_read_buf(args->trans, args->dp, args->blkno, -1, &bp1,
2644 XFS_ATTR_FORK); 2644 XFS_ATTR_FORK, NULL);
2645 if (error) { 2645 if (error) {
2646 return(error); 2646 return(error);
2647 } 2647 }
@@ -2652,7 +2652,7 @@ xfs_attr_leaf_flipflags(xfs_da_args_t *args)
2652 */ 2652 */
2653 if (args->blkno2 != args->blkno) { 2653 if (args->blkno2 != args->blkno) {
2654 error = xfs_da_read_buf(args->trans, args->dp, args->blkno2, 2654 error = xfs_da_read_buf(args->trans, args->dp, args->blkno2,
2655 -1, &bp2, XFS_ATTR_FORK); 2655 -1, &bp2, XFS_ATTR_FORK, NULL);
2656 if (error) { 2656 if (error) {
2657 return(error); 2657 return(error);
2658 } 2658 }
@@ -2753,7 +2753,7 @@ xfs_attr_root_inactive(xfs_trans_t **trans, xfs_inode_t *dp)
2753 * the extents in reverse order the extent containing 2753 * the extents in reverse order the extent containing
2754 * block 0 must still be there. 2754 * block 0 must still be there.
2755 */ 2755 */
2756 error = xfs_da_read_buf(*trans, dp, 0, -1, &bp, XFS_ATTR_FORK); 2756 error = xfs_da_read_buf(*trans, dp, 0, -1, &bp, XFS_ATTR_FORK, NULL);
2757 if (error) 2757 if (error)
2758 return(error); 2758 return(error);
2759 blkno = XFS_BUF_ADDR(bp); 2759 blkno = XFS_BUF_ADDR(bp);
@@ -2839,7 +2839,7 @@ xfs_attr_node_inactive(
2839 * before we come back to this one. 2839 * before we come back to this one.
2840 */ 2840 */
2841 error = xfs_da_read_buf(*trans, dp, child_fsb, -2, &child_bp, 2841 error = xfs_da_read_buf(*trans, dp, child_fsb, -2, &child_bp,
2842 XFS_ATTR_FORK); 2842 XFS_ATTR_FORK, NULL);
2843 if (error) 2843 if (error)
2844 return(error); 2844 return(error);
2845 if (child_bp) { 2845 if (child_bp) {
@@ -2880,7 +2880,7 @@ xfs_attr_node_inactive(
2880 */ 2880 */
2881 if ((i+1) < count) { 2881 if ((i+1) < count) {
2882 error = xfs_da_read_buf(*trans, dp, 0, parent_blkno, 2882 error = xfs_da_read_buf(*trans, dp, 0, parent_blkno,
2883 &bp, XFS_ATTR_FORK); 2883 &bp, XFS_ATTR_FORK, NULL);
2884 if (error) 2884 if (error)
2885 return(error); 2885 return(error);
2886 child_fsb = be32_to_cpu(node->btree[i+1].before); 2886 child_fsb = be32_to_cpu(node->btree[i+1].before);