summaryrefslogtreecommitdiffstats
path: root/.get_maintainer.ignore
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-01-26 11:37:44 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2018-01-29 07:27:24 -0800
commit9f37bd11b442dc7c79d8979ecf627c059bc6bfe7 (patch)
tree80049ab307da5731a666d363a68ff14232ae0c70 /.get_maintainer.ignore
parent0c6dda7a1cbd587e48bcef1999875e29549c2b41 (diff)
downloadlinux-9f37bd11b442dc7c79d8979ecf627c059bc6bfe7.tar.bz2
xfs: check reflink allocation mappings
There's a really bad bug in xfs_reflink_allocate_cow -- if bmapi_write can return a zero error code but no mappings. This happens if there's an extent size hint (which causes allocation requests to be rounded to extsz granularity internally), but there wasn't a big enough chunk of free space to start filling at the extsz granularity and fill even one block of the range that we actually requested. In any case, if we got no mappings we can't possibly do anything useful with the contents of imap, so we must bail out with ENOSPC here. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions