diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2012-12-14 13:36:02 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2013-01-29 11:28:04 +0100 |
commit | 350a9b0a7269c6f4b99eca34d0e773c3c2072520 (patch) | |
tree | 2cb52b2c5a5b5da1a1a07ef50be4bf0598cdb407 /fs/gfs2/trans.h | |
parent | GFS2: Merge revoke adding functions (diff) | |
download | linux-350a9b0a7269c6f4b99eca34d0e773c3c2072520.tar.xz linux-350a9b0a7269c6f4b99eca34d0e773c3c2072520.zip |
GFS2: Split gfs2_trans_add_bh() into two
There is little common content in gfs2_trans_add_bh() between the data
and meta classes by the time that the functions which it calls are
taken into account. The intent here is to split this into two
separate functions. Stage one is to introduce gfs2_trans_add_data()
and gfs2_trans_add_meta() and update the callers accordingly.
Later patches will then pull in the content of gfs2_trans_add_bh()
and its dependent functions in order to clean up the code in this
area.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/trans.h')
-rw-r--r-- | fs/gfs2/trans.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/trans.h b/fs/gfs2/trans.h index bf2ae9aeee7a..1e6e7da25a17 100644 --- a/fs/gfs2/trans.h +++ b/fs/gfs2/trans.h @@ -39,7 +39,8 @@ extern int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, unsigned int revokes); extern void gfs2_trans_end(struct gfs2_sbd *sdp); -extern void gfs2_trans_add_bh(struct gfs2_glock *gl, struct buffer_head *bh, int meta); +extern void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh); +extern void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh); extern void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd); extern void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len); |