aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_attr_leaf.c
diff options
context:
space:
mode:
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 303d41e4217b..a85e9caf0156 100644
--- a/fs/xfs/xfs_attr_leaf.c
+++ b/fs/xfs/xfs_attr_leaf.c
@@ -555,7 +555,7 @@ xfs_attr_shortform_to_leaf(xfs_da_args_t *args)
555out: 555out:
556 if(bp) 556 if(bp)
557 xfs_da_buf_done(bp); 557 xfs_da_buf_done(bp);
558 kmem_free(tmpbuffer, size); 558 kmem_free(tmpbuffer);
559 return(error); 559 return(error);
560} 560}
561 561
@@ -676,7 +676,7 @@ xfs_attr_shortform_list(xfs_attr_list_context_t *context)
676 XFS_ERRLEVEL_LOW, 676 XFS_ERRLEVEL_LOW,
677 context->dp->i_mount, sfe); 677 context->dp->i_mount, sfe);
678 xfs_attr_trace_l_c("sf corrupted", context); 678 xfs_attr_trace_l_c("sf corrupted", context);
679 kmem_free(sbuf, sbsize); 679 kmem_free(sbuf);
680 return XFS_ERROR(EFSCORRUPTED); 680 return XFS_ERROR(EFSCORRUPTED);
681 } 681 }
682 if (!xfs_attr_namesp_match_overrides(context->flags, sfe->flags)) { 682 if (!xfs_attr_namesp_match_overrides(context->flags, sfe->flags)) {
@@ -717,7 +717,7 @@ xfs_attr_shortform_list(xfs_attr_list_context_t *context)
717 } 717 }
718 } 718 }
719 if (i == nsbuf) { 719 if (i == nsbuf) {
720 kmem_free(sbuf, sbsize); 720 kmem_free(sbuf);
721 xfs_attr_trace_l_c("blk end", context); 721 xfs_attr_trace_l_c("blk end", context);
722 return(0); 722 return(0);
723 } 723 }
@@ -747,7 +747,7 @@ xfs_attr_shortform_list(xfs_attr_list_context_t *context)
747 cursor->offset++; 747 cursor->offset++;
748 } 748 }
749 749
750 kmem_free(sbuf, sbsize); 750 kmem_free(sbuf);
751 xfs_attr_trace_l_c("sf E-O-F", context); 751 xfs_attr_trace_l_c("sf E-O-F", context);
752 return(0); 752 return(0);
753} 753}
@@ -873,7 +873,7 @@ xfs_attr_leaf_to_shortform(xfs_dabuf_t *bp, xfs_da_args_t *args, int forkoff)
873 error = 0; 873 error = 0;
874 874
875out: 875out:
876 kmem_free(tmpbuffer, XFS_LBSIZE(dp->i_mount)); 876 kmem_free(tmpbuffer);
877 return(error); 877 return(error);
878} 878}
879 879
@@ -1271,7 +1271,7 @@ xfs_attr_leaf_compact(xfs_trans_t *trans, xfs_dabuf_t *bp)
1271 be16_to_cpu(hdr_s->count), mp); 1271 be16_to_cpu(hdr_s->count), mp);
1272 xfs_da_log_buf(trans, bp, 0, XFS_LBSIZE(mp) - 1); 1272 xfs_da_log_buf(trans, bp, 0, XFS_LBSIZE(mp) - 1);
1273 1273
1274 kmem_free(tmpbuffer, XFS_LBSIZE(mp)); 1274 kmem_free(tmpbuffer);
1275} 1275}
1276 1276
1277/* 1277/*
@@ -1921,7 +1921,7 @@ xfs_attr_leaf_unbalance(xfs_da_state_t *state, xfs_da_state_blk_t *drop_blk,
1921 be16_to_cpu(drop_hdr->count), mp); 1921 be16_to_cpu(drop_hdr->count), mp);
1922 } 1922 }
1923 memcpy((char *)save_leaf, (char *)tmp_leaf, state->blocksize); 1923 memcpy((char *)save_leaf, (char *)tmp_leaf, state->blocksize);
1924 kmem_free(tmpbuffer, state->blocksize); 1924 kmem_free(tmpbuffer);
1925 } 1925 }
1926 1926
1927 xfs_da_log_buf(state->args->trans, save_blk->bp, 0, 1927 xfs_da_log_buf(state->args->trans, save_blk->bp, 0,
@@ -2451,7 +2451,7 @@ xfs_attr_leaf_list_int(xfs_dabuf_t *bp, xfs_attr_list_context_t *context)
2451 (int)name_rmt->namelen, 2451 (int)name_rmt->namelen,
2452 valuelen, 2452 valuelen,
2453 (char*)args.value); 2453 (char*)args.value);
2454 kmem_free(args.value, valuelen); 2454 kmem_free(args.value);
2455 } 2455 }
2456 else { 2456 else {
2457 retval = context->put_listent(context, 2457 retval = context->put_listent(context,
@@ -2954,7 +2954,7 @@ xfs_attr_leaf_inactive(xfs_trans_t **trans, xfs_inode_t *dp, xfs_dabuf_t *bp)
2954 error = tmp; /* save only the 1st errno */ 2954 error = tmp; /* save only the 1st errno */
2955 } 2955 }
2956 2956
2957 kmem_free((xfs_caddr_t)list, size); 2957 kmem_free((xfs_caddr_t)list);
2958 return(error); 2958 return(error);
2959} 2959}
2960 2960