projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c128e57
)
pNFS/filelayout: enable LAYOUTGET on OPEN
author
Olga Kornievskaia
<kolga@netapp.com>
Tue, 10 Sep 2019 21:14:30 +0000
(17:14 -0400)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Tue, 24 Sep 2019 20:28:38 +0000
(16:28 -0400)
Add the flag to the filelayout driver to add LAYOUTGET to
the OPEN compound.
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/filelayout/filelayout.c
patch
|
blob
|
history
diff --git
a/fs/nfs/filelayout/filelayout.c
b/fs/nfs/filelayout/filelayout.c
index 3cb073c50fa6476b11441eda67f5a18133bcc162..c9b605f6c9cb22168dbed2c656e03480b7b99b2b 100644
(file)
--- a/
fs/nfs/filelayout/filelayout.c
+++ b/
fs/nfs/filelayout/filelayout.c
@@
-1164,6
+1164,7
@@
static struct pnfs_layoutdriver_type filelayout_type = {
.id = LAYOUT_NFSV4_1_FILES,
.name = "LAYOUT_NFSV4_1_FILES",
.owner = THIS_MODULE,
+ .flags = PNFS_LAYOUTGET_ON_OPEN,
.max_layoutget_response = 4096, /* 1 page or so... */
.alloc_layout_hdr = filelayout_alloc_layout_hdr,
.free_layout_hdr = filelayout_free_layout_hdr,