提交 a36fed12 编写于 作者: B Boaz Harrosh 提交者: Linus Torvalds

exofs: Fix "add bdi backing to mount session" fall out

Commit b3d0ab7e ("exofs: add bdi backing
to mount session") has a bug in the placement of the bdi member at
struct exofs_sb_info.  The layout member must be kept last.
Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
Acked-by: NJens Axboe <jens.axboe@oracle.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 dfad53d4
...@@ -85,6 +85,7 @@ struct exofs_sb_info { ...@@ -85,6 +85,7 @@ struct exofs_sb_info {
u32 s_next_generation; /* next gen # to use */ u32 s_next_generation; /* next gen # to use */
atomic_t s_curr_pending; /* number of pending commands */ atomic_t s_curr_pending; /* number of pending commands */
uint8_t s_cred[OSD_CAP_LEN]; /* credential for the fscb */ uint8_t s_cred[OSD_CAP_LEN]; /* credential for the fscb */
struct backing_dev_info bdi; /* register our bdi with VFS */
struct pnfs_osd_data_map data_map; /* Default raid to use struct pnfs_osd_data_map data_map; /* Default raid to use
* FIXME: Needed ? * FIXME: Needed ?
...@@ -93,7 +94,6 @@ struct exofs_sb_info { ...@@ -93,7 +94,6 @@ struct exofs_sb_info {
struct exofs_layout layout; /* Default files layout, struct exofs_layout layout; /* Default files layout,
* contains the variable osd_dev * contains the variable osd_dev
* array. Keep last */ * array. Keep last */
struct backing_dev_info bdi;
struct osd_dev *_min_one_dev[1]; /* Place holder for one dev */ struct osd_dev *_min_one_dev[1]; /* Place holder for one dev */
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册