linux/fs/gfs2
Benjamin Marzinski 5dc39fe621 [GFS2] Fix journal off-by-one error
log_refund() incorrectly assumed that if a transaction had been touched, it
always committed buffers to the incore log. Thus, when you got around to
flushing the log, you would need one more block than you committed, to account
for the header. So it automatically set reserved to 1, which had the effect of
making sdp->sd_log_blks_reserved one greater when you got to gfs2_log_flush().
However, if you don't actually commit anything to the incore log between
flushes, you don't need the header, because you aren't writing anything out.
With this patch, log_refund() only increments reservered to account for the
header if something has been committed since the last flush.

Signed-off-by: Benjamin E. Marzinski <bmarzins@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2006-08-25 09:57:41 -04:00
..
locking [GFS2] match plock result with correct request 2006-08-07 08:46:51 -04:00
acl.c [GFS2] Remove gfs2_repermission 2006-06-22 10:59:10 -04:00
acl.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
bmap.c [GFS2] Remove page.[ch] 2006-07-26 11:27:10 -04:00
bmap.h [GFS2] Tidy gfs2_unstuffer_page 2006-07-26 10:51:20 -04:00
daemon.c [GFS2] Fix unlinked file handling 2006-06-14 15:32:57 -04:00
daemon.h [GFS2] Fix unlinked file handling 2006-06-14 15:32:57 -04:00
dir.c [GFS2] Fix bug in directory code 2006-08-01 15:28:57 -04:00
dir.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
eaops.c [GFS2] [-mm patch] fs/gfs2/: make code static 2006-06-22 11:16:40 -04:00
eaops.h [GFS2] [-mm patch] fs/gfs2/: make code static 2006-06-22 11:16:40 -04:00
eattr.c [GFS2] Fix unlinked file handling 2006-06-14 15:32:57 -04:00
eattr.h [GFS2] selinux support 2006-05-22 10:08:35 -04:00
format.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
gfs2.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
glock.c [GFS2] Speed up scanning of glocks 2006-08-24 17:03:05 -04:00
glock.h [GFS2] Fix unlinked file handling 2006-06-14 15:32:57 -04:00
glops.c [GFS2] Use a bio to read the superblock 2006-07-27 13:53:53 -04:00
glops.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
incore.h [GFS2] Speed up scanning of glocks 2006-08-24 17:03:05 -04:00
inode.c [GFS2] Tidy up in various files 2006-07-31 15:42:17 -04:00
inode.h [GFS2] Remove gfs2_repermission 2006-06-22 10:59:10 -04:00
Kconfig [GFS2] gfs2/dlm: mailing list and web page 2006-06-22 15:29:57 -04:00
lm_interface.h [GFS2] lockproto api prefix 2006-08-07 08:46:19 -04:00
lm.c [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
lm.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
locking.c [GFS2] Fix gfs_ prefix in locking.c 2006-08-07 11:12:30 -04:00
log.c [GFS2] Fix journal off-by-one error 2006-08-25 09:57:41 -04:00
log.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
lops.c [GFS2] Another list_del bug 2006-08-22 16:25:50 -04:00
lops.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
lvb.c [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
lvb.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
main.c [GFS2] Fix unlinked file handling 2006-06-14 15:32:57 -04:00
Makefile [GFS2] Remove page.[ch] 2006-07-26 11:27:10 -04:00
meta_io.c [GFS2] Fix leak of gfs2_bufdata 2006-08-18 15:51:09 -04:00
meta_io.h [GFS2] Tidy up in various files 2006-07-31 15:42:17 -04:00
mount.c [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
mount.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
ondisk.c [GFS2] Add generation number 2006-07-11 09:46:33 -04:00
ops_address.c [GFS2] Tidy up error handling in gfs2_releasepage() 2006-08-24 15:59:40 -04:00
ops_address.h [GFS2] Add generation number 2006-07-11 09:46:33 -04:00
ops_dentry.c [GFS2] Fix unlinked file handling 2006-06-14 15:32:57 -04:00
ops_dentry.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
ops_export.c [GFS2] NFS update 2006-07-13 09:24:48 -04:00
ops_export.h [GFS2] NFS update 2006-07-13 09:24:48 -04:00
ops_file.c [GFS2] Tidy up in various files 2006-07-31 15:42:17 -04:00
ops_file.h [GFS2] Mark file_operations const 2006-07-03 13:47:02 -04:00
ops_fstype.c [GFS2] Speed up scanning of glocks 2006-08-24 17:03:05 -04:00
ops_fstype.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
ops_inode.c [GFS2] Remove page.[ch] 2006-07-26 11:27:10 -04:00
ops_inode.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
ops_super.c [GFS2] Fix leak of gfs2_bufdata 2006-08-18 15:51:09 -04:00
ops_super.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
ops_vm.c [GFS2] Fix lock ordering bug in page fault path 2006-08-04 15:41:22 -04:00
ops_vm.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
quota.c [GFS2] Remove dependance on tty_write_message() 2006-07-03 11:20:06 -04:00
quota.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
recovery.c [GFS2] Fix a couple of refcount leaks. 2006-08-10 17:18:59 -04:00
recovery.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
rgrp.c [GFS2] Another list_del bug 2006-08-22 16:25:50 -04:00
rgrp.h [GFS2] Add generation number 2006-07-11 09:46:33 -04:00
super.c [GFS2] Fix bug in super block reading code 2006-07-27 16:37:48 -04:00
super.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
sys.c [GFS2] Fix unlinked file handling 2006-06-14 15:32:57 -04:00
sys.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
trans.c [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00
trans.h [GFS2] Fix unlinked file handling 2006-06-14 15:32:57 -04:00
util.c [GFS2] Fix unlinked file handling 2006-06-14 15:32:57 -04:00
util.h [GFS2] Update copyright date to 2006 2006-05-18 15:09:15 -04:00