summaryrefslogtreecommitdiffstats
path: root/fs/nfs/filelayout
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2019-09-10 17:14:30 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-09-24 16:28:38 -0400
commita8fd0feeca35cb8f9ddd950191f4aeb777f52f89 (patch)
treef8da9dcd2850520205fc9846d6fb06d834383dd2 /fs/nfs/filelayout
parentc128e575514ce93dced349417d136304a33b6f99 (diff)
pNFS/filelayout: enable LAYOUTGET on OPEN
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>
Diffstat (limited to 'fs/nfs/filelayout')
-rw-r--r--fs/nfs/filelayout/filelayout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c
index 3cb073c50fa6..c9b605f6c9cb 100644
--- a/fs/nfs/filelayout/filelayout.c
+++ b/fs/nfs/filelayout/filelayout.c
@@ -1164,6 +1164,7 @@ static struct pnfs_layoutdriver_type filelayout_type = {
1164 .id = LAYOUT_NFSV4_1_FILES, 1164 .id = LAYOUT_NFSV4_1_FILES,
1165 .name = "LAYOUT_NFSV4_1_FILES", 1165 .name = "LAYOUT_NFSV4_1_FILES",
1166 .owner = THIS_MODULE, 1166 .owner = THIS_MODULE,
1167 .flags = PNFS_LAYOUTGET_ON_OPEN,
1167 .max_layoutget_response = 4096, /* 1 page or so... */ 1168 .max_layoutget_response = 4096, /* 1 page or so... */
1168 .alloc_layout_hdr = filelayout_alloc_layout_hdr, 1169 .alloc_layout_hdr = filelayout_alloc_layout_hdr,
1169 .free_layout_hdr = filelayout_free_layout_hdr, 1170 .free_layout_hdr = filelayout_free_layout_hdr,