M_USE_RESERVE has been deprecated for a decade. Eliminate any uses that

have no run-time effect.
This commit is contained in:
Alan Cox 2010-10-02 17:58:57 +00:00
parent 915d4d4a17
commit a03e344a7f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213363
3 changed files with 3 additions and 5 deletions

View file

@ -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;

View file

@ -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");

View file

@ -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