aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/rgrp.c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2013-03-13 10:26:38 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2013-04-08 03:41:04 -0400
commit20095218fb882139527c0e04b8e63869fa057b14 (patch)
tree1e170fc64d9d3060ac0d1cc998fe90a6241851fb /fs/gfs2/rgrp.c
parent79ba74808df1132d9ddbf4e87304a4050e667e3e (diff)
GFS2: Remove vestigial parameter ip from function rs_deltree
The functions that delete block reservations from the rgrp block reservations rbtree no longer use the ip parameter. This patch eliminates the parameter. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r--fs/gfs2/rgrp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
index 71c7fc523d70..0c5a575b513e 100644
--- a/fs/gfs2/rgrp.c
+++ b/fs/gfs2/rgrp.c
@@ -592,7 +592,7 @@ static void dump_rs(struct seq_file *seq, const struct gfs2_blkreserv *rs)
592 * @rs: The reservation to remove 592 * @rs: The reservation to remove
593 * 593 *
594 */ 594 */
595static void __rs_deltree(struct gfs2_inode *ip, struct gfs2_blkreserv *rs) 595static void __rs_deltree(struct gfs2_blkreserv *rs)
596{ 596{
597 struct gfs2_rgrpd *rgd; 597 struct gfs2_rgrpd *rgd;
598 598
@@ -605,7 +605,7 @@ static void __rs_deltree(struct gfs2_inode *ip, struct gfs2_blkreserv *rs)
605 RB_CLEAR_NODE(&rs->rs_node); 605 RB_CLEAR_NODE(&rs->rs_node);
606 606
607 if (rs->rs_free) { 607 if (rs->rs_free) {
608 /* return reserved blocks to the rgrp and the ip */ 608 /* return reserved blocks to the rgrp */
609 BUG_ON(rs->rs_rbm.rgd->rd_reserved < rs->rs_free); 609 BUG_ON(rs->rs_rbm.rgd->rd_reserved < rs->rs_free);
610 rs->rs_rbm.rgd->rd_reserved -= rs->rs_free; 610 rs->rs_rbm.rgd->rd_reserved -= rs->rs_free;
611 rs->rs_free = 0; 611 rs->rs_free = 0;
@@ -619,14 +619,14 @@ static void __rs_deltree(struct gfs2_inode *ip, struct gfs2_blkreserv *rs)
619 * @rs: The reservation to remove 619 * @rs: The reservation to remove
620 * 620 *
621 */ 621 */
622void gfs2_rs_deltree(struct gfs2_inode *ip, struct gfs2_blkreserv *rs) 622void gfs2_rs_deltree(struct gfs2_blkreserv *rs)
623{ 623{
624 struct gfs2_rgrpd *rgd; 624 struct gfs2_rgrpd *rgd;
625 625
626 rgd = rs->rs_rbm.rgd; 626 rgd = rs->rs_rbm.rgd;
627 if (rgd) { 627 if (rgd) {
628 spin_lock(&rgd->rd_rsspin); 628 spin_lock(&rgd->rd_rsspin);
629 __rs_deltree(ip, rs); 629 __rs_deltree(rs);
630 spin_unlock(&rgd->rd_rsspin); 630 spin_unlock(&rgd->rd_rsspin);
631 } 631 }
632} 632}
@@ -640,7 +640,7 @@ void gfs2_rs_delete(struct gfs2_inode *ip)
640{ 640{
641 down_write(&ip->i_rw_mutex); 641 down_write(&ip->i_rw_mutex);
642 if (ip->i_res) { 642 if (ip->i_res) {
643 gfs2_rs_deltree(ip, ip->i_res); 643 gfs2_rs_deltree(ip->i_res);
644 BUG_ON(ip->i_res->rs_free); 644 BUG_ON(ip->i_res->rs_free);
645 kmem_cache_free(gfs2_rsrv_cachep, ip->i_res); 645 kmem_cache_free(gfs2_rsrv_cachep, ip->i_res);
646 ip->i_res = NULL; 646 ip->i_res = NULL;
@@ -664,7 +664,7 @@ static void return_all_reservations(struct gfs2_rgrpd *rgd)
664 spin_lock(&rgd->rd_rsspin); 664 spin_lock(&rgd->rd_rsspin);
665 while ((n = rb_first(&rgd->rd_rstree))) { 665 while ((n = rb_first(&rgd->rd_rstree))) {
666 rs = rb_entry(n, struct gfs2_blkreserv, rs_node); 666 rs = rb_entry(n, struct gfs2_blkreserv, rs_node);
667 __rs_deltree(NULL, rs); 667 __rs_deltree(rs);
668 } 668 }
669 spin_unlock(&rgd->rd_rsspin); 669 spin_unlock(&rgd->rd_rsspin);
670} 670}
@@ -1874,7 +1874,7 @@ int gfs2_inplace_reserve(struct gfs2_inode *ip, u32 requested, u32 aflags)
1874 1874
1875 /* Drop reservation, if we couldn't use reserved rgrp */ 1875 /* Drop reservation, if we couldn't use reserved rgrp */
1876 if (gfs2_rs_active(rs)) 1876 if (gfs2_rs_active(rs))
1877 gfs2_rs_deltree(ip, rs); 1877 gfs2_rs_deltree(rs);
1878check_rgrp: 1878check_rgrp:
1879 /* Check for unlinked inodes which can be reclaimed */ 1879 /* Check for unlinked inodes which can be reclaimed */
1880 if (rs->rs_rbm.rgd->rd_flags & GFS2_RDF_CHECK) 1880 if (rs->rs_rbm.rgd->rd_flags & GFS2_RDF_CHECK)
@@ -2087,7 +2087,7 @@ static void gfs2_adjust_reservation(struct gfs2_inode *ip,
2087 if (rs->rs_free && !ret) 2087 if (rs->rs_free && !ret)
2088 goto out; 2088 goto out;
2089 } 2089 }
2090 __rs_deltree(ip, rs); 2090 __rs_deltree(rs);
2091 } 2091 }
2092out: 2092out:
2093 spin_unlock(&rgd->rd_rsspin); 2093 spin_unlock(&rgd->rd_rsspin);