aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/flexfilelayout/flexfilelayout.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/flexfilelayout/flexfilelayout.h')
-rw-r--r--fs/nfs/flexfilelayout/flexfilelayout.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayout.h b/fs/nfs/flexfilelayout/flexfilelayout.h
index 7e248874f46d..6fcd8d5e8e3d 100644
--- a/fs/nfs/flexfilelayout/flexfilelayout.h
+++ b/fs/nfs/flexfilelayout/flexfilelayout.h
@@ -15,6 +15,9 @@
15 * due to network error etc. */ 15 * due to network error etc. */
16#define NFS4_FLEXFILE_LAYOUT_MAX_MIRROR_CNT 4096 16#define NFS4_FLEXFILE_LAYOUT_MAX_MIRROR_CNT 4096
17 17
18/* LAYOUTSTATS report interval in ms */
19#define FF_LAYOUTSTATS_REPORT_INTERVAL (60000L)
20
18struct nfs4_ff_ds_version { 21struct nfs4_ff_ds_version {
19 u32 version; 22 u32 version;
20 u32 minor_version; 23 u32 minor_version;
@@ -62,6 +65,7 @@ struct nfs4_ff_layoutstat {
62}; 65};
63 66
64struct nfs4_ff_layout_mirror { 67struct nfs4_ff_layout_mirror {
68 struct pnfs_layout_segment *lseg; /* back pointer */
65 u32 ds_count; 69 u32 ds_count;
66 u32 efficiency; 70 u32 efficiency;
67 struct nfs4_ff_layout_ds *mirror_ds; 71 struct nfs4_ff_layout_ds *mirror_ds;
@@ -75,7 +79,7 @@ struct nfs4_ff_layout_mirror {
75 struct nfs4_ff_layoutstat read_stat; 79 struct nfs4_ff_layoutstat read_stat;
76 struct nfs4_ff_layoutstat write_stat; 80 struct nfs4_ff_layoutstat write_stat;
77 ktime_t start_time; 81 ktime_t start_time;
78 struct pnfs_layout_segment *lseg; /* back pointer */ 82 ktime_t last_report_time;
79}; 83};
80 84
81struct nfs4_ff_layout_segment { 85struct nfs4_ff_layout_segment {