mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
M_USE_RESERVE has been deprecated for a decade. Eliminate any uses that
have no run-time effect.
This commit is contained in:
parent
915d4d4a17
commit
a03e344a7f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213363
@ -186,8 +186,7 @@ static int nwfs_mount(struct mount *mp)
|
||||
ncp_conn_unlock(conn, td); /* we keep the ref */
|
||||
mp->mnt_stat.f_iosize = conn->buffer_size;
|
||||
/* We must malloc our own mount info */
|
||||
nmp = malloc(sizeof(struct nwmount),M_NWFSDATA,
|
||||
M_WAITOK | M_USE_RESERVE | M_ZERO);
|
||||
nmp = malloc(sizeof(struct nwmount), M_NWFSDATA, M_WAITOK | M_ZERO);
|
||||
if (nmp == NULL) {
|
||||
nwfs_printf("could not alloc nwmount\n");
|
||||
error = ENOMEM;
|
||||
|
@ -175,8 +175,7 @@ smbfs_mount(struct mount *mp)
|
||||
#ifdef SMBFS_USEZONE
|
||||
smp = zalloc(smbfsmount_zone);
|
||||
#else
|
||||
smp = malloc(sizeof(*smp), M_SMBFSDATA,
|
||||
M_WAITOK|M_USE_RESERVE);
|
||||
smp = malloc(sizeof(*smp), M_SMBFSDATA, M_WAITOK);
|
||||
#endif
|
||||
if (smp == NULL) {
|
||||
printf("could not alloc smbmount\n");
|
||||
|
@ -580,7 +580,7 @@ softdep_get_depcounts(struct mount *mp,
|
||||
* this file is being ported.
|
||||
*/
|
||||
|
||||
#define M_SOFTDEP_FLAGS (M_WAITOK | M_USE_RESERVE)
|
||||
#define M_SOFTDEP_FLAGS (M_WAITOK)
|
||||
|
||||
#define D_PAGEDEP 0
|
||||
#define D_INODEDEP 1
|
||||
|
Loading…
Reference in New Issue
Block a user