diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2012-07-30 14:53:19 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2012-09-24 10:46:54 +0100 |
commit | 71f890f7f758f340215d48fed5223f9cce05b652 (patch) | |
tree | e0a274e17e9a6e2a623fceaa47b9faf1635d7343 /fs/gfs2/incore.h | |
parent | 1f981697432daea3c0abf938b39174dcfb29340e (diff) | |
download | talos-op-linux-71f890f7f758f340215d48fed5223f9cce05b652.tar.gz talos-op-linux-71f890f7f758f340215d48fed5223f9cce05b652.zip |
GFS2: Remove rs_requested field from reservations
The rs_requested field is left over from the original allocation
code, however this should have been a parameter passed to the
various functions from gfs2_inplace_reserve() and not a member of the
reservation structure as the value is not required after the
initial allocation.
This also helps simplify the code since we no longer need to set
the rs_requested to zero. Also the gfs2_inplace_release()
function can also be simplified since the reservation structure
will always be defined when it is called, and the only remaining
task is to unlock the rgrp if required. It can also now be
called unconditionally too, resulting in a further simplification.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index aaecc8085fc5..52078a161ecd 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -250,9 +250,6 @@ struct gfs2_blkreserv { /* components used during write (step 1): */ atomic_t rs_sizehint; /* hint of the write size */ - /* components used during inplace_reserve (step 2): */ - u32 rs_requested; /* Filled in by caller of gfs2_inplace_reserve() */ - /* components used during get_local_rgrp (step 3): */ struct gfs2_rgrpd *rs_rgd; /* pointer to the gfs2_rgrpd */ struct gfs2_holder rs_rgd_gh; /* Filled in by get_local_rgrp */ |