GFS2: Fold quota data into the reservations struct
This patch moves the ancillary quota data structures into the block reservations structure. This saves GFS2 some time and effort in allocating and deallocating the qadata structure. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Este cometimento está contido em:

cometido por
Steven Whitehouse

ascendente
0a305e4960
cometimento
5407e24229
@@ -29,14 +29,6 @@ extern void gfs2_free_clones(struct gfs2_rgrpd *rgd);
|
||||
extern int gfs2_rgrp_go_lock(struct gfs2_holder *gh);
|
||||
extern void gfs2_rgrp_go_unlock(struct gfs2_holder *gh);
|
||||
|
||||
extern struct gfs2_qadata *gfs2_qadata_get(struct gfs2_inode *ip);
|
||||
static inline void gfs2_qadata_put(struct gfs2_inode *ip)
|
||||
{
|
||||
BUG_ON(ip->i_qadata == NULL);
|
||||
kfree(ip->i_qadata);
|
||||
ip->i_qadata = NULL;
|
||||
}
|
||||
|
||||
extern int gfs2_inplace_reserve(struct gfs2_inode *ip, u32 requested);
|
||||
extern void gfs2_inplace_release(struct gfs2_inode *ip);
|
||||
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador