diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-06-07 18:34:51 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-06-08 18:30:20 +0200 |
commit | b26b2bf14f823e9597118c01993aeba9aeb9a701 (patch) | |
tree | a16f96a738101533e64ee11bae6a1b2204cc145e /fs/xfs/xfs_file.c | |
parent | xfs: change the prefix of XFS_EOF_FLAGS_* to XFS_ICWALK_FLAG_ (diff) | |
download | linux-b26b2bf14f823e9597118c01993aeba9aeb9a701.tar.xz linux-b26b2bf14f823e9597118c01993aeba9aeb9a701.zip |
xfs: rename struct xfs_eofblocks to xfs_icwalk
The xfs_eofblocks structure is no longer well-named -- nowadays it
provides optional filtering criteria to any walk of the incore inode
cache. Only one of the cache walk goals has anything to do with
clearing of speculative post-EOF preallocations, so change the name to
be more appropriate.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r-- | fs/xfs/xfs_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index eb39c3777491..9fd5a82a814c 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -773,14 +773,14 @@ write_retry: cleared_space = true; goto write_retry; } else if (ret == -ENOSPC && !cleared_space) { - struct xfs_eofblocks eofb = {0}; + struct xfs_icwalk icw = {0}; cleared_space = true; xfs_flush_inodes(ip->i_mount); xfs_iunlock(ip, iolock); - eofb.eof_flags = XFS_ICWALK_FLAG_SYNC; - xfs_blockgc_free_space(ip->i_mount, &eofb); + icw.icw_flags = XFS_ICWALK_FLAG_SYNC; + xfs_blockgc_free_space(ip->i_mount, &icw); goto write_retry; } |