diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2019-04-05 07:18:23 -0400 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2019-05-07 17:39:14 -0400 |
commit | fbb27873f21d5fb9bf556edcaa67e9891636e5d4 (patch) | |
tree | 344f3b0fef695f9721aebd9e21efbe6369967d9d /fs/gfs2 | |
parent | a5b1d3fc503164bb04e2b720054ab07d8a0004fc (diff) |
gfs2: Rename gfs2_trans_{add_unrevoke => remove_revoke}
Rename gfs2_trans_add_unrevoke to gfs2_trans_remove_revoke: there is no
such thing as an "unrevoke" object; all this function does is remove
existing revoke objects plus some bookkeeping.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/bmap.c | 4 | ||||
-rw-r--r-- | fs/gfs2/dir.c | 2 | ||||
-rw-r--r-- | fs/gfs2/rgrp.c | 2 | ||||
-rw-r--r-- | fs/gfs2/trans.c | 2 | ||||
-rw-r--r-- | fs/gfs2/trans.h | 2 | ||||
-rw-r--r-- | fs/gfs2/xattr.c | 6 |
6 files changed, 9 insertions, 9 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c index 59334e2edffb..6f1f0d30fe29 100644 --- a/fs/gfs2/bmap.c +++ b/fs/gfs2/bmap.c | |||
@@ -142,7 +142,7 @@ int gfs2_unstuff_dinode(struct gfs2_inode *ip, struct page *page) | |||
142 | if (error) | 142 | if (error) |
143 | goto out_brelse; | 143 | goto out_brelse; |
144 | if (isdir) { | 144 | if (isdir) { |
145 | gfs2_trans_add_unrevoke(GFS2_SB(&ip->i_inode), block, 1); | 145 | gfs2_trans_remove_revoke(GFS2_SB(&ip->i_inode), block, 1); |
146 | error = gfs2_dir_get_new_buffer(ip, block, &bh); | 146 | error = gfs2_dir_get_new_buffer(ip, block, &bh); |
147 | if (error) | 147 | if (error) |
148 | goto out_brelse; | 148 | goto out_brelse; |
@@ -676,7 +676,7 @@ static int gfs2_iomap_alloc(struct inode *inode, struct iomap *iomap, | |||
676 | goto out; | 676 | goto out; |
677 | alloced += n; | 677 | alloced += n; |
678 | if (state != ALLOC_DATA || gfs2_is_jdata(ip)) | 678 | if (state != ALLOC_DATA || gfs2_is_jdata(ip)) |
679 | gfs2_trans_add_unrevoke(sdp, bn, n); | 679 | gfs2_trans_remove_revoke(sdp, bn, n); |
680 | switch (state) { | 680 | switch (state) { |
681 | /* Growing height of tree */ | 681 | /* Growing height of tree */ |
682 | case ALLOC_GROW_HEIGHT: | 682 | case ALLOC_GROW_HEIGHT: |
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index daa14ab4e31b..db9a05244a35 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c | |||
@@ -883,7 +883,7 @@ static struct gfs2_leaf *new_leaf(struct inode *inode, struct buffer_head **pbh, | |||
883 | if (!bh) | 883 | if (!bh) |
884 | return NULL; | 884 | return NULL; |
885 | 885 | ||
886 | gfs2_trans_add_unrevoke(GFS2_SB(inode), bn, 1); | 886 | gfs2_trans_remove_revoke(GFS2_SB(inode), bn, 1); |
887 | gfs2_trans_add_meta(ip->i_gl, bh); | 887 | gfs2_trans_add_meta(ip->i_gl, bh); |
888 | gfs2_metatype_set(bh, GFS2_METATYPE_LF, GFS2_FORMAT_LF); | 888 | gfs2_metatype_set(bh, GFS2_METATYPE_LF, GFS2_FORMAT_LF); |
889 | leaf = (struct gfs2_leaf *)bh->b_data; | 889 | leaf = (struct gfs2_leaf *)bh->b_data; |
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 52a4f340a867..15d6e32de55f 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -2440,7 +2440,7 @@ int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *nblocks, | |||
2440 | 2440 | ||
2441 | gfs2_statfs_change(sdp, 0, -(s64)*nblocks, dinode ? 1 : 0); | 2441 | gfs2_statfs_change(sdp, 0, -(s64)*nblocks, dinode ? 1 : 0); |
2442 | if (dinode) | 2442 | if (dinode) |
2443 | gfs2_trans_add_unrevoke(sdp, block, *nblocks); | 2443 | gfs2_trans_remove_revoke(sdp, block, *nblocks); |
2444 | 2444 | ||
2445 | gfs2_quota_change(ip, *nblocks, ip->i_inode.i_uid, ip->i_inode.i_gid); | 2445 | gfs2_quota_change(ip, *nblocks, ip->i_inode.i_uid, ip->i_inode.i_gid); |
2446 | 2446 | ||
diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c index 5c4eae3b69fb..d328da7cde36 100644 --- a/fs/gfs2/trans.c +++ b/fs/gfs2/trans.c | |||
@@ -253,7 +253,7 @@ void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) | |||
253 | tr->tr_num_revoke++; | 253 | tr->tr_num_revoke++; |
254 | } | 254 | } |
255 | 255 | ||
256 | void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) | 256 | void gfs2_trans_remove_revoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) |
257 | { | 257 | { |
258 | struct gfs2_bufdata *bd, *tmp; | 258 | struct gfs2_bufdata *bd, *tmp; |
259 | struct gfs2_trans *tr = current->journal_info; | 259 | struct gfs2_trans *tr = current->journal_info; |
diff --git a/fs/gfs2/trans.h b/fs/gfs2/trans.h index ad70087d0597..1e39f056ccb7 100644 --- a/fs/gfs2/trans.h +++ b/fs/gfs2/trans.h | |||
@@ -44,6 +44,6 @@ extern void gfs2_trans_end(struct gfs2_sbd *sdp); | |||
44 | extern void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh); | 44 | extern void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh); |
45 | extern void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh); | 45 | extern void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh); |
46 | extern void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd); | 46 | extern void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd); |
47 | extern void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len); | 47 | extern void gfs2_trans_remove_revoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len); |
48 | 48 | ||
49 | #endif /* __TRANS_DOT_H__ */ | 49 | #endif /* __TRANS_DOT_H__ */ |
diff --git a/fs/gfs2/xattr.c b/fs/gfs2/xattr.c index 996c915a9c97..675e704830df 100644 --- a/fs/gfs2/xattr.c +++ b/fs/gfs2/xattr.c | |||
@@ -631,7 +631,7 @@ static int ea_alloc_blk(struct gfs2_inode *ip, struct buffer_head **bhp) | |||
631 | error = gfs2_alloc_blocks(ip, &block, &n, 0, NULL); | 631 | error = gfs2_alloc_blocks(ip, &block, &n, 0, NULL); |
632 | if (error) | 632 | if (error) |
633 | return error; | 633 | return error; |
634 | gfs2_trans_add_unrevoke(sdp, block, 1); | 634 | gfs2_trans_remove_revoke(sdp, block, 1); |
635 | *bhp = gfs2_meta_new(ip->i_gl, block); | 635 | *bhp = gfs2_meta_new(ip->i_gl, block); |
636 | gfs2_trans_add_meta(ip->i_gl, *bhp); | 636 | gfs2_trans_add_meta(ip->i_gl, *bhp); |
637 | gfs2_metatype_set(*bhp, GFS2_METATYPE_EA, GFS2_FORMAT_EA); | 637 | gfs2_metatype_set(*bhp, GFS2_METATYPE_EA, GFS2_FORMAT_EA); |
@@ -693,7 +693,7 @@ static int ea_write(struct gfs2_inode *ip, struct gfs2_ea_header *ea, | |||
693 | error = gfs2_alloc_blocks(ip, &block, &n, 0, NULL); | 693 | error = gfs2_alloc_blocks(ip, &block, &n, 0, NULL); |
694 | if (error) | 694 | if (error) |
695 | return error; | 695 | return error; |
696 | gfs2_trans_add_unrevoke(sdp, block, 1); | 696 | gfs2_trans_remove_revoke(sdp, block, 1); |
697 | bh = gfs2_meta_new(ip->i_gl, block); | 697 | bh = gfs2_meta_new(ip->i_gl, block); |
698 | gfs2_trans_add_meta(ip->i_gl, bh); | 698 | gfs2_trans_add_meta(ip->i_gl, bh); |
699 | gfs2_metatype_set(bh, GFS2_METATYPE_ED, GFS2_FORMAT_ED); | 699 | gfs2_metatype_set(bh, GFS2_METATYPE_ED, GFS2_FORMAT_ED); |
@@ -997,7 +997,7 @@ static int ea_set_block(struct gfs2_inode *ip, struct gfs2_ea_request *er, | |||
997 | error = gfs2_alloc_blocks(ip, &blk, &n, 0, NULL); | 997 | error = gfs2_alloc_blocks(ip, &blk, &n, 0, NULL); |
998 | if (error) | 998 | if (error) |
999 | return error; | 999 | return error; |
1000 | gfs2_trans_add_unrevoke(sdp, blk, 1); | 1000 | gfs2_trans_remove_revoke(sdp, blk, 1); |
1001 | indbh = gfs2_meta_new(ip->i_gl, blk); | 1001 | indbh = gfs2_meta_new(ip->i_gl, blk); |
1002 | gfs2_trans_add_meta(ip->i_gl, indbh); | 1002 | gfs2_trans_add_meta(ip->i_gl, indbh); |
1003 | gfs2_metatype_set(indbh, GFS2_METATYPE_IN, GFS2_FORMAT_IN); | 1003 | gfs2_metatype_set(indbh, GFS2_METATYPE_IN, GFS2_FORMAT_IN); |