Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 237f8306 authored by NeilBrown's avatar NeilBrown Committed by Trond Myklebust
Browse files

NFS: don't expect errors from mempool_alloc().



Commit fbe77c30 ("NFS: move rw_mode to nfs_pageio_header")
reintroduced some pointless code that commit 518662e0 ("NFS: fix
usage of mempools.") had recently removed.

Remove it again.

Cc: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 9590d083
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -102,10 +102,8 @@ static struct nfs_pgio_header *nfs_writehdr_alloc(void)
{
	struct nfs_pgio_header *p = mempool_alloc(nfs_wdata_mempool, GFP_NOIO);

	if (p) {
	memset(p, 0, sizeof(*p));
	p->rw_mode = FMODE_WRITE;
	}
	return p;
}