aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/lops.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /fs/gfs2/lops.h
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'fs/gfs2/lops.h')
-rw-r--r--fs/gfs2/lops.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/fs/gfs2/lops.h b/fs/gfs2/lops.h
index 954a330585f..3c0b2737658 100644
--- a/fs/gfs2/lops.h
+++ b/fs/gfs2/lops.h
@@ -27,8 +27,6 @@ extern const struct gfs2_log_operations gfs2_rg_lops;
27extern const struct gfs2_log_operations gfs2_databuf_lops; 27extern const struct gfs2_log_operations gfs2_databuf_lops;
28 28
29extern const struct gfs2_log_operations *gfs2_log_ops[]; 29extern const struct gfs2_log_operations *gfs2_log_ops[];
30extern void gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page);
31extern void gfs2_log_flush_bio(struct gfs2_sbd *sdp, int rw);
32 30
33static inline unsigned int buf_limit(struct gfs2_sbd *sdp) 31static inline unsigned int buf_limit(struct gfs2_sbd *sdp)
34{ 32{
@@ -46,17 +44,17 @@ static inline unsigned int databuf_limit(struct gfs2_sbd *sdp)
46 return limit; 44 return limit;
47} 45}
48 46
49static inline void lops_init_le(struct gfs2_bufdata *bd, 47static inline void lops_init_le(struct gfs2_log_element *le,
50 const struct gfs2_log_operations *lops) 48 const struct gfs2_log_operations *lops)
51{ 49{
52 INIT_LIST_HEAD(&bd->bd_list); 50 INIT_LIST_HEAD(&le->le_list);
53 bd->bd_ops = lops; 51 le->le_ops = lops;
54} 52}
55 53
56static inline void lops_add(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) 54static inline void lops_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le)
57{ 55{
58 if (bd->bd_ops->lo_add) 56 if (le->le_ops->lo_add)
59 bd->bd_ops->lo_add(sdp, bd); 57 le->le_ops->lo_add(sdp, le);
60} 58}
61 59
62static inline void lops_before_commit(struct gfs2_sbd *sdp) 60static inline void lops_before_commit(struct gfs2_sbd *sdp)