aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_attr.h
diff options
context:
space:
mode:
authorLachlan McIlroy <lachlan@sgi.com>2008-06-23 13:25:02 +1000
committerNiv Sardi <xaiki@debian.org>2008-07-28 16:58:56 +1000
commit6278debdf95b100a516b803f90d6f11b41c34171 (patch)
treeea4021d53cf15a295bee5b83a31134ba2e6a8cb7 /fs/xfs/xfs_attr.h
parent[XFS] make inode reclaim wait for log I/O to complete (diff)
downloadlinux-dev-6278debdf95b100a516b803f90d6f11b41c34171.tar.xz
linux-dev-6278debdf95b100a516b803f90d6f11b41c34171.zip
[XFS] fix extent corruption in xfs_iext_irec_compact_full()
This function is used to compact the indirect extent list by moving extents from one page to the previous to fill them up. After we move some extents to an earlier page we need to shuffle the remaining extents to the start of the page. The actual bug here is the second argument to memmove() needs to index past the extents, that were copied to the previous page, and move the remaining extents. For pages that are already full (ie ext_avail == 0) the compaction code has no net effect so don't do it. SGI-PV: 983337 SGI-Modid: xfs-linux-melb:xfs-kern:31332a Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Christoph Hellwig <hch@infradead.org>
Diffstat (limited to 'fs/xfs/xfs_attr.h')
0 files changed, 0 insertions, 0 deletions