diff options
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r-- | fs/gfs2/rgrp.c | 14 |
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 | ||
1033 | int gfs2_inplace_reserve_i(struct gfs2_inode *ip, | 1033 | int 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 | /** |