mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
c58efdb442
To ensure the log is covered and the filesystem idles correctly, we need to ensure that dummy transactions hit the disk and do not stay pinned in memory. If the superblock is pinned in memory, it can't be flushed so the log covering cannot make progress. The result is dependent on timing - more oftent han not we continue to issues a log covering transaction every 36s rather than idling after ~90s. Fix this by making the log covering transaction synchronous. To avoid additional log force from xfssyncd, make the log covering transaction take the place of the existing log force in the xfssyncd background sync process. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
31 lines
1.3 KiB
C
31 lines
1.3 KiB
C
/*
|
|
* Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
|
|
* All Rights Reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it would be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write the Free Software Foundation,
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
#ifndef __XFS_FSOPS_H__
|
|
#define __XFS_FSOPS_H__
|
|
|
|
extern int xfs_fs_geometry(xfs_mount_t *mp, xfs_fsop_geom_t *geo, int nversion);
|
|
extern int xfs_growfs_data(xfs_mount_t *mp, xfs_growfs_data_t *in);
|
|
extern int xfs_growfs_log(xfs_mount_t *mp, xfs_growfs_log_t *in);
|
|
extern int xfs_fs_counts(xfs_mount_t *mp, xfs_fsop_counts_t *cnt);
|
|
extern int xfs_reserve_blocks(xfs_mount_t *mp, __uint64_t *inval,
|
|
xfs_fsop_resblks_t *outval);
|
|
extern int xfs_fs_goingdown(xfs_mount_t *mp, __uint32_t inflags);
|
|
extern int xfs_fs_log_dummy(struct xfs_mount *mp);
|
|
|
|
#endif /* __XFS_FSOPS_H__ */
|