Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 3ebcb24

Browse files
olgakorn1Trond Myklebust
authored andcommitted
pNFS/filelayout: fixup pNfs allocation modes
Change left over allocation flags. Fixes: a245832 ("pNFS/files: Ensure pNFS allocation modes are consistent with nfsiod") Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Reviewed-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
1 parent 4836da2 commit 3ebcb24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfs/filelayout/filelayout.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ filelayout_pg_init_read(struct nfs_pageio_descriptor *pgio,
875875
req->wb_bytes,
876876
IOMODE_READ,
877877
false,
878-
GFP_KERNEL);
878+
nfs_io_gfp_mask());
879879
if (IS_ERR(pgio->pg_lseg)) {
880880
pgio->pg_error = PTR_ERR(pgio->pg_lseg);
881881
pgio->pg_lseg = NULL;
@@ -899,7 +899,7 @@ filelayout_pg_init_write(struct nfs_pageio_descriptor *pgio,
899899
req->wb_bytes,
900900
IOMODE_RW,
901901
false,
902-
GFP_NOFS);
902+
nfs_io_gfp_mask());
903903
if (IS_ERR(pgio->pg_lseg)) {
904904
pgio->pg_error = PTR_ERR(pgio->pg_lseg);
905905
pgio->pg_lseg = NULL;

0 commit comments

Comments
 (0)