diff options
Diffstat (limited to 'fs/gfs2/meta_io.h')
| -rw-r--r-- | fs/gfs2/meta_io.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/gfs2/meta_io.h b/fs/gfs2/meta_io.h index 4823b934208a..ac5d8027d335 100644 --- a/fs/gfs2/meta_io.h +++ b/fs/gfs2/meta_io.h | |||
| @@ -38,12 +38,15 @@ static inline void gfs2_buffer_copy_tail(struct buffer_head *to_bh, | |||
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | extern const struct address_space_operations gfs2_meta_aops; | 40 | extern const struct address_space_operations gfs2_meta_aops; |
| 41 | extern const struct address_space_operations gfs2_rgrp_aops; | ||
| 41 | 42 | ||
| 42 | static inline struct gfs2_sbd *gfs2_mapping2sbd(struct address_space *mapping) | 43 | static inline struct gfs2_sbd *gfs2_mapping2sbd(struct address_space *mapping) |
| 43 | { | 44 | { |
| 44 | struct inode *inode = mapping->host; | 45 | struct inode *inode = mapping->host; |
| 45 | if (mapping->a_ops == &gfs2_meta_aops) | 46 | if (mapping->a_ops == &gfs2_meta_aops) |
| 46 | return (((struct gfs2_glock *)mapping) - 1)->gl_sbd; | 47 | return (((struct gfs2_glock *)mapping) - 1)->gl_sbd; |
| 48 | else if (mapping->a_ops == &gfs2_rgrp_aops) | ||
| 49 | return container_of(mapping, struct gfs2_sbd, sd_aspace); | ||
| 47 | else | 50 | else |
| 48 | return inode->i_sb->s_fs_info; | 51 | return inode->i_sb->s_fs_info; |
| 49 | } | 52 | } |
