mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 23:54:04 +08:00
f30f656e25
xfs_mod_freecounter has two entirely separate code paths for adding or subtracting from the free counters. Only the subtract case looks at the rsvd flag and can return an error. Split xfs_mod_freecounter into separate helpers for subtracting or adding the freecounter, and remove all the impossible to reach error handling for the addition case. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
18 lines
575 B
C
18 lines
575 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
|
|
* All Rights Reserved.
|
|
*/
|
|
#ifndef __XFS_FSOPS_H__
|
|
#define __XFS_FSOPS_H__
|
|
|
|
int xfs_growfs_data(struct xfs_mount *mp, struct xfs_growfs_data *in);
|
|
int xfs_growfs_log(struct xfs_mount *mp, struct xfs_growfs_log *in);
|
|
int xfs_reserve_blocks(struct xfs_mount *mp, uint64_t request);
|
|
int xfs_fs_goingdown(struct xfs_mount *mp, uint32_t inflags);
|
|
|
|
int xfs_fs_reserve_ag_blocks(struct xfs_mount *mp);
|
|
void xfs_fs_unreserve_ag_blocks(struct xfs_mount *mp);
|
|
|
|
#endif /* __XFS_FSOPS_H__ */
|