xfs: check for COW overflows in i_delayed_blks
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 18 Jun 2019 21:07:37 +0000 (14:07 -0700)
committerEryu Guan <guaneryu@gmail.com>
Fri, 28 Jun 2019 03:13:21 +0000 (11:13 +0800)
commit55867bd3a8fb96eb1158b1ccd0fa0449860a6319
treeae8cb068ddc205416c136afbe87d6a50641cd32a
parentfdb698644d530b5c6451e027722894eec1a18a66
xfs: check for COW overflows in i_delayed_blks

With the new copy on write functionality it's possible to reserve so
much COW space for a file that we end up overflowing i_delayed_blks.
The only user-visible effect of this is to cause totally wrong i_blocks
output in stat, so check for that.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/507 [new file with mode: 0755]
tests/xfs/507.out [new file with mode: 0644]
tests/xfs/group