OSDN Git Service

xfs: squash prealloc while over quota free space as well
authorBrian Foster <bfoster@redhat.com>
Thu, 24 Jul 2014 09:56:08 +0000 (19:56 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 24 Jul 2014 09:56:08 +0000 (19:56 +1000)
commitf074051ff550f9f1f1a8ab4868277d049a7fd7aa
tree9009e61e9af493336bc869535426c286960eaf7e
parentdc06f398f00059707236d456d954a3a9d2a829db
xfs: squash prealloc while over quota free space as well

From: Brian Foster <bfoster@redhat.com>

Commit 4d559a3b introduced heavy prealloc. squashing to catch the case
of requesting too large a prealloc on smaller filesystems, leading to
repeated flush and retry cycles that occur on ENOSPC. Now that we issue
eofblocks scans on EDQUOT/ENOSPC, squash the prealloc against the
minimum available free space across all applicable quotas as well to
avoid a similar problem of repeated eofblocks scans.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_iomap.c