aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exofs/exofs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exofs/exofs.h')
-rw-r--r--fs/exofs/exofs.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/exofs/exofs.h b/fs/exofs/exofs.h
index e103dbd86fe1..9f62349a5a5c 100644
--- a/fs/exofs/exofs.h
+++ b/fs/exofs/exofs.h
@@ -66,13 +66,14 @@ struct exofs_layout {
66 enum exofs_inode_layout_gen_functions lay_func; 66 enum exofs_inode_layout_gen_functions lay_func;
67 67
68 unsigned s_numdevs; /* Num of devices in array */ 68 unsigned s_numdevs; /* Num of devices in array */
69 struct osd_dev *s_ods[0]; /* Variable length */ 69 struct osd_dev **s_ods; /* osd_dev array */
70}; 70};
71 71
72/* 72/*
73 * our extension to the in-memory superblock 73 * our extension to the in-memory superblock
74 */ 74 */
75struct exofs_sb_info { 75struct exofs_sb_info {
76 struct backing_dev_info bdi; /* register our bdi with VFS */
76 struct exofs_sb_stats s_ess; /* Written often, pre-allocate*/ 77 struct exofs_sb_stats s_ess; /* Written often, pre-allocate*/
77 int s_timeout; /* timeout for OSD operations */ 78 int s_timeout; /* timeout for OSD operations */
78 uint64_t s_nextid; /* highest object ID used */ 79 uint64_t s_nextid; /* highest object ID used */
@@ -81,15 +82,11 @@ struct exofs_sb_info {
81 u32 s_next_generation; /* next gen # to use */ 82 u32 s_next_generation; /* next gen # to use */
82 atomic_t s_curr_pending; /* number of pending commands */ 83 atomic_t s_curr_pending; /* number of pending commands */
83 uint8_t s_cred[OSD_CAP_LEN]; /* credential for the fscb */ 84 uint8_t s_cred[OSD_CAP_LEN]; /* credential for the fscb */
84 struct backing_dev_info bdi; /* register our bdi with VFS */
85 85
86 struct pnfs_osd_data_map data_map; /* Default raid to use 86 struct pnfs_osd_data_map data_map; /* Default raid to use
87 * FIXME: Needed ? 87 * FIXME: Needed ?
88 */ 88 */
89/* struct exofs_layout dir_layout;*/ /* Default dir layout */ 89 struct exofs_layout layout; /* Default files layout */
90 struct exofs_layout layout; /* Default files layout,
91 * contains the variable osd_dev
92 * array. Keep last */
93 struct osd_dev *_min_one_dev[1]; /* Place holder for one dev */ 90 struct osd_dev *_min_one_dev[1]; /* Place holder for one dev */
94}; 91};
95 92