linux-stable-rt/fs/gfs2
Steven Whitehouse 1ad38c437f [GFS2] Clean up gfs2_trans_add_revoke()
The following alters gfs2_trans_add_revoke() to take a struct
gfs2_bufdata as an argument. This eliminates the memory allocation which
was previously required by making use of the already existing struct
gfs2_bufdata. It makes some sanity checks to ensure that the
gfs2_bufdata has been removed from all the lists before its recycled as
a revoke structure. This saves one memory allocation and one free per
revoke structure.

Also as a result, and to simplify the locking, since there is no longer
any blocking code in gfs2_trans_add_revoke() we must hold the log lock
whenever this function is called. This reduces the amount of times we
take and unlock the log lock.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2007-10-10 08:56:12 +01:00
..
locking
Kconfig
Makefile
acl.c
acl.h
bmap.c [GFS2] Fix ordering of dirty/journal for ordered buffer unstuffing 2007-10-10 08:56:05 +01:00
bmap.h
daemon.c
daemon.h
dir.c
dir.h
eaops.c
eaops.h
eattr.c
eattr.h
gfs2.h
glock.c [GFS2] delay glock demote for a minimum hold time 2007-10-10 08:55:48 +01:00
glock.h
glops.c [GFS2] Clean up gfs2_trans_add_revoke() 2007-10-10 08:56:12 +01:00
glops.h
incore.h [GFS2] Replace revoke structure with bufdata structure 2007-10-10 08:56:07 +01:00
inode.c [GFS2] fix inode meta data corruption 2007-10-10 08:55:51 +01:00
inode.h
lm.c
lm.h
locking.c
log.c [GFS2] Clean up gfs2_trans_add_revoke() 2007-10-10 08:56:12 +01:00
log.h [GFS2] Introduce gfs2_remove_from_ail 2007-10-10 08:55:55 +01:00
lops.c [GFS2] Clean up gfs2_trans_add_revoke() 2007-10-10 08:56:12 +01:00
lops.h
main.c
meta_io.c [GFS2] Clean up gfs2_trans_add_revoke() 2007-10-10 08:56:12 +01:00
meta_io.h [GFS2] Move pin/unpin into lops.c, clean up locking 2007-10-10 08:56:00 +01:00
mount.c
mount.h
ops_address.c [GFS2] Clean up ordered write code 2007-10-10 08:56:03 +01:00
ops_address.h
ops_dentry.c
ops_dentry.h
ops_export.c
ops_file.c
ops_file.h
ops_fstype.c [GFS2] Clean up ordered write code 2007-10-10 08:56:03 +01:00
ops_fstype.h
ops_inode.c [GFS2] Correct lock ordering in unlink 2007-10-10 08:55:53 +01:00
ops_inode.h
ops_super.c
ops_super.h
ops_vm.c
ops_vm.h
quota.c
quota.h
recovery.c
recovery.h
rgrp.c
rgrp.h
super.c
super.h
sys.c
sys.h
trans.c [GFS2] Clean up gfs2_trans_add_revoke() 2007-10-10 08:56:12 +01:00
trans.h [GFS2] Clean up gfs2_trans_add_revoke() 2007-10-10 08:56:12 +01:00
util.c
util.h