aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_pnfs.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2015-04-13 11:27:59 +1000
committerDave Chinner <david@fromorbit.com>2015-04-13 11:27:59 +1000
commit66db8104968ad8c0bf5a45a100ae586ddfadc1e1 (patch)
tree38fbc56644a981f6b5a7bc60955d0b03cc6ac9d0 /fs/xfs/xfs_pnfs.c
parentxfs: use larger in-core attr firstused field and detect overflow (diff)
downloadlinux-dev-66db8104968ad8c0bf5a45a100ae586ddfadc1e1.tar.xz
linux-dev-66db8104968ad8c0bf5a45a100ae586ddfadc1e1.zip
xfs: kill unnecessary firstused overflow check on attr3 leaf removal
xfs_attr3_leaf_remove() removes an attribute from an attr leaf block. If the attribute nameval data happens to be at the start of the nameval region, a new start offset (firstused) for the region is calculated (since the region grows from the tail of the block to the start). Once the new firstused is calculated, it is checked for zero in an apparent overflow check. Now that the in-core firstused is 32-bit, overflow is not possible and this check can be removed. Since the purpose for this check is not documented and appears to exist since the port to Linux, be conservative and replace it with an assert. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_pnfs.c')
0 files changed, 0 insertions, 0 deletions