aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/rgrp.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2011-09-20 07:16:11 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2011-10-21 07:39:52 -0400
commit9ae32429fe036fcfce036ec57b28fc59f3911976 (patch)
treea331589e14fef9f8149fc3e1f00baab7d60260fe /fs/gfs2/rgrp.c
parent891a8e9335176b7eb9adc5e34f555ee5e1da47c6 (diff)
GFS2: Remove two unused variables
The two variables being initialised in gfs2_inplace_reserve to track the file & line number of the caller are never used, so we might as well remove them. If something does go wrong, then a stack trace is probably more useful anyway. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r--fs/gfs2/rgrp.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
index 1daf8a78c733..96bd6d759f29 100644
--- a/fs/gfs2/rgrp.c
+++ b/fs/gfs2/rgrp.c
@@ -1024,14 +1024,13 @@ static int get_local_rgrp(struct gfs2_inode *ip, u64 *last_unlinked)
1024} 1024}
1025 1025
1026/** 1026/**
1027 * gfs2_inplace_reserve_i - Reserve space in the filesystem 1027 * gfs2_inplace_reserve - Reserve space in the filesystem
1028 * @ip: the inode to reserve space for 1028 * @ip: the inode to reserve space for
1029 * 1029 *
1030 * Returns: errno 1030 * Returns: errno
1031 */ 1031 */
1032 1032
1033int gfs2_inplace_reserve_i(struct gfs2_inode *ip, 1033int gfs2_inplace_reserve(struct gfs2_inode *ip)
1034 char *file, unsigned int line)
1035{ 1034{
1036 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); 1035 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
1037 struct gfs2_alloc *al = ip->i_alloc; 1036 struct gfs2_alloc *al = ip->i_alloc;
@@ -1057,14 +1056,7 @@ int gfs2_inplace_reserve_i(struct gfs2_inode *ip,
1057 gfs2_log_flush(sdp, NULL); 1056 gfs2_log_flush(sdp, NULL);
1058 } while (tries++ < 3); 1057 } while (tries++ < 3);
1059 1058
1060 if (error) 1059 return error;
1061 return error;
1062
1063 /* no error, so we have the rgrp set in the inode's allocation. */
1064 al->al_file = file;
1065 al->al_line = line;
1066
1067 return 0;
1068} 1060}
1069 1061
1070/** 1062/**