summaryrefslogtreecommitdiffstats
path: root/fs/nfs_common
diff options
context:
space:
mode:
authorJie Liu <jeff.liu@oracle.com>2013-10-25 08:52:44 +0200
committerBen Myers <bpm@sgi.com>2013-10-31 22:43:19 +0100
commitbb86d21cba22a045b09d11b71decf5ca7c3d5def (patch)
tree3de7d5b4537fc3250b01f3ad2e0639ca78167325 /fs/nfs_common
parentxfs: be more forgiving of a v4 secondary sb w/ junk in v5 fields (diff)
downloadlinux-bb86d21cba22a045b09d11b71decf5ca7c3d5def.tar.xz
linux-bb86d21cba22a045b09d11b71decf5ca7c3d5def.zip
xfs: fix the extent count when allocating an new indirection array entry
At xfs_iext_add(), if extent(s) are being appended to the last page in the indirection array and the new extent(s) don't fit in the page, the number of extents(erp->er_extcount) in a new allocated entry should be the minimum value between count and XFS_LINEAR_EXTS, instead of count. For now, there is no existing test case can demonstrates a problem with the er_extcount being set incorrectly here, but it obviously like a bug. Signed-off-by: Jie Liu <jeff.liu@oracle.com> Reviewed-by: Ben Myers <bpm@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/nfs_common')
0 files changed, 0 insertions, 0 deletions