]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xfs: complain if we don't get nextents bmap records
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 5 Dec 2016 01:36:56 +0000 (12:36 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 5 Dec 2016 01:36:56 +0000 (12:36 +1100)
commit356a3225222e5bc4df88aef3419fb6424f18ab69
treeed4f652f393d68b95744b29a38f6db3df3d5abae
parentbb3be7e7c1c18e1b141d4cadeb98cc89ecf78099
xfs: complain if we don't get nextents bmap records

When reading into memory all extents of a btree-format inode fork,
complain if the number of extents we find is not the same as the number
of extents reported in the inode core.  This is needed to stop an IO
action from accessing the garbage areas of the in-core fork.

[dchinner: removed redundant assert]

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_bmap.c