Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[GFS2] Get rid of unneeded parameter in gfs2_rlist_alloc

This patch removed the unnecessary parameter from function
gfs2_rlist_alloc. The parameter was always passed in as 0.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>

authored by

Bob Peterson and committed by
Steven Whitehouse
fe6c991c ecc30c79

+8 -10
+1 -1
fs/gfs2/bmap.c
··· 680 680 else 681 681 goto out; /* Nothing to do */ 682 682 683 - gfs2_rlist_alloc(&rlist, LM_ST_EXCLUSIVE, 0); 683 + gfs2_rlist_alloc(&rlist, LM_ST_EXCLUSIVE); 684 684 685 685 for (x = 0; x < rlist.rl_rgrps; x++) { 686 686 struct gfs2_rgrpd *rgd;
+1 -1
fs/gfs2/dir.c
··· 1894 1894 l_blocks++; 1895 1895 } 1896 1896 1897 - gfs2_rlist_alloc(&rlist, LM_ST_EXCLUSIVE, 0); 1897 + gfs2_rlist_alloc(&rlist, LM_ST_EXCLUSIVE); 1898 1898 1899 1899 for (x = 0; x < rlist.rl_rgrps; x++) { 1900 1900 struct gfs2_rgrpd *rgd;
+1 -1
fs/gfs2/eattr.c
··· 1347 1347 else 1348 1348 goto out; 1349 1349 1350 - gfs2_rlist_alloc(&rlist, LM_ST_EXCLUSIVE, 0); 1350 + gfs2_rlist_alloc(&rlist, LM_ST_EXCLUSIVE); 1351 1351 1352 1352 for (x = 0; x < rlist.rl_rgrps; x++) { 1353 1353 struct gfs2_rgrpd *rgd;
+3 -4
fs/gfs2/rgrp.c
··· 1 1 /* 2 2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 3 - * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. 3 + * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 4 4 * 5 5 * This copyrighted material is made available to anyone wishing to use, 6 6 * modify, copy, or redistribute it subject to the terms and conditions ··· 1699 1699 * 1700 1700 */ 1701 1701 1702 - void gfs2_rlist_alloc(struct gfs2_rgrp_list *rlist, unsigned int state, 1703 - int flags) 1702 + void gfs2_rlist_alloc(struct gfs2_rgrp_list *rlist, unsigned int state) 1704 1703 { 1705 1704 unsigned int x; 1706 1705 ··· 1707 1708 GFP_NOFS | __GFP_NOFAIL); 1708 1709 for (x = 0; x < rlist->rl_rgrps; x++) 1709 1710 gfs2_holder_init(rlist->rl_rgd[x]->rd_gl, 1710 - state, flags, 1711 + state, 0, 1711 1712 &rlist->rl_ghs[x]); 1712 1713 } 1713 1714
+2 -3
fs/gfs2/rgrp.h
··· 1 1 /* 2 2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 3 - * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 3 + * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 4 4 * 5 5 * This copyrighted material is made available to anyone wishing to use, 6 6 * modify, copy, or redistribute it subject to the terms and conditions ··· 64 64 65 65 void gfs2_rlist_add(struct gfs2_sbd *sdp, struct gfs2_rgrp_list *rlist, 66 66 u64 block); 67 - void gfs2_rlist_alloc(struct gfs2_rgrp_list *rlist, unsigned int state, 68 - int flags); 67 + void gfs2_rlist_alloc(struct gfs2_rgrp_list *rlist, unsigned int state); 69 68 void gfs2_rlist_free(struct gfs2_rgrp_list *rlist); 70 69 u64 gfs2_ri_total(struct gfs2_sbd *sdp); 71 70