]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: free cowblocks and retry on buffered write ENOSPC
authorBrian Foster <bfoster@redhat.com>
Tue, 20 Jun 2017 21:36:19 +0000 (14:36 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 28 Jun 2017 01:23:21 +0000 (18:23 -0700)
commit55123fa966acc948cf2e741154bc12c0366a9a70
tree941ef1a4ac60a2cf08bb498e410fc7697056108b
parenteaf3df00415081a13bb5d1ab53ab6e43240a6d24
xfs: free cowblocks and retry on buffered write ENOSPC

XFS runs an eofblocks reclaim scan before returning an ENOSPC error to
userspace for buffered writes. This facilitates aggressive speculative
preallocation without causing user visible side effects such as
premature ENOSPC.

Run a cowblocks scan in the same situation to reclaim lingering COW fork
preallocation throughout the filesystem.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_file.c