summaryrefslogtreecommitdiff
path: root/fs/nfs/getroot.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2013-05-27 06:38:20 (GMT)
committerBen Myers <bpm@sgi.com>2013-05-30 17:37:04 (GMT)
commit321a95839e65db3759a07a3655184b0283af90fe (patch)
tree9e5e95564afdd0758d685ae45035004be1fd5014 /fs/nfs/getroot.c
parent34510185abeaa5be9b178a41c0a03d30aec3db7e (diff)
downloadlinux-fsl-qoriq-321a95839e65db3759a07a3655184b0283af90fe.tar.xz
xfs: fix incorrect remote symlink block count
When CRCs are enabled, the number of blocks needed to hold a remote symlink on a 1k block size filesystem may be 2 instead of 1. The transaction reservation for the allocated blocks was not taking this into account and only allocating one block. Hence when trying to read or invalidate such symlinks, we are mapping a hole where there should be a block and things go bad at that point. Fix the reservation to use the correct block count, clean up the block count calculation similar to the remote attribute calculation, and add a debug guard to detect when we don't write the entire symlink to disk. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Ben Myers <bpm@sgi.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/nfs/getroot.c')
0 files changed, 0 insertions, 0 deletions