]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Remove rs_requested field from reservations
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 30 Jul 2012 13:53:19 +0000 (14:53 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 3 Aug 2012 09:23:14 +0000 (10:23 +0100)
commitc200283cac2216037ad57706f805b458d9ac8449
tree90db046d2dae01df30a25e7db024028ae021c89b
parent3633e7275516e0fe0a80f1361a6565b1e925cf9a
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>
fs/gfs2/aops.c
fs/gfs2/file.c
fs/gfs2/incore.h
fs/gfs2/inode.c
fs/gfs2/quota.c
fs/gfs2/rgrp.c
fs/gfs2/rgrp.h
fs/gfs2/trans.h
fs/gfs2/xattr.c