Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270011
b: refs/heads/master
c: 9ae3242
h: refs/heads/master
i:
  270009: 7500dea
  270007: aa56ed7
v: v3
  • Loading branch information
Steven Whitehouse committed Oct 21, 2011
1 parent 46d70b4 commit 99239dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 891a8e9335176b7eb9adc5e34f555ee5e1da47c6
refs/heads/master: 9ae32429fe036fcfce036ec57b28fc59f3911976
4 changes: 0 additions & 4 deletions trunk/fs/gfs2/incore.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ struct gfs2_glock {

struct gfs2_alloc {
/* Quota stuff */

struct gfs2_quota_data *al_qd[2*MAXQUOTAS];
struct gfs2_holder al_qd_ghs[2*MAXQUOTAS];
unsigned int al_qd_num;
Expand All @@ -255,9 +254,6 @@ struct gfs2_alloc {
u32 al_alloced; /* Filled in by gfs2_alloc_*() */

/* Filled in by gfs2_inplace_reserve() */

unsigned int al_line;
char *al_file;
struct gfs2_holder al_rgd_gh;
};

Expand Down
14 changes: 3 additions & 11 deletions trunk/fs/gfs2/rgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1024,14 +1024,13 @@ static int get_local_rgrp(struct gfs2_inode *ip, u64 *last_unlinked)
}

/**
* gfs2_inplace_reserve_i - Reserve space in the filesystem
* gfs2_inplace_reserve - Reserve space in the filesystem
* @ip: the inode to reserve space for
*
* Returns: errno
*/

int gfs2_inplace_reserve_i(struct gfs2_inode *ip,
char *file, unsigned int line)
int gfs2_inplace_reserve(struct gfs2_inode *ip)
{
struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
struct gfs2_alloc *al = ip->i_alloc;
Expand All @@ -1057,14 +1056,7 @@ int gfs2_inplace_reserve_i(struct gfs2_inode *ip,
gfs2_log_flush(sdp, NULL);
} while (tries++ < 3);

if (error)
return error;

/* no error, so we have the rgrp set in the inode's allocation. */
al->al_file = file;
al->al_line = line;

return 0;
return error;
}

/**
Expand Down
6 changes: 1 addition & 5 deletions trunk/fs/gfs2/rgrp.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ static inline void gfs2_alloc_put(struct gfs2_inode *ip)
ip->i_alloc = NULL;
}

extern int gfs2_inplace_reserve_i(struct gfs2_inode *ip,
char *file, unsigned int line);
#define gfs2_inplace_reserve(ip) \
gfs2_inplace_reserve_i((ip), __FILE__, __LINE__)

extern int gfs2_inplace_reserve(struct gfs2_inode *ip);
extern void gfs2_inplace_release(struct gfs2_inode *ip);

extern int gfs2_alloc_block(struct gfs2_inode *ip, u64 *bn, unsigned int *n);
Expand Down

0 comments on commit 99239dd

Please sign in to comment.