kernel-ark/fs/gfs2
Benjamin Marzinski ddf4b426aa [GFS2] fix jdata issues
This is a patch for the first three issues of RHBZ #238162

The first issue is that when you allocate a new page for a file, it will not
start off uptodate. This makes sense, since you haven't written anything to that
part of the file yet.  Unfortunately, gfs2_pin() checks to make sure that the
buffers are uptodate.  The solution to this is to mark the buffers uptodate in
gfs2_commit_write(), after they have been zeroed out and have the data written
into them.  I'm pretty confident with this fix, although it's not completely
obvious that there is no problem with marking the buffers uptodate here.

The second issue is simply that you can try to pin a data buffer that is already
on the incore log, and thus, already pinned. This patch checks to see if this
buffer is already on the log, and exits databuf_lo_add() if it is, just like
buf_lo_add() does.

The third issue is that gfs2_log_flush() doesn't do it's block accounting
correctly.  Both metadata and journaled data are logged, but gfs2_log_flush()
only compares the number of metadata blocks with the number of blocks to commit
to the ondisk journal.  This patch also counts the journaled data blocks.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2007-07-09 08:23:08 +01:00
..
locking [GFS2] Reduce size of struct gdlm_lock 2007-07-09 08:22:21 +01:00
acl.c
acl.h
bmap.c [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
bmap.h
daemon.c
daemon.h
dir.c [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
dir.h [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
eaops.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
eaops.h
eattr.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
eattr.h
gfs2.h
glock.c [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
glock.h Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
glops.c [GFS2] flush the glock completely in inode_go_sync 2007-07-09 08:22:07 +01:00
glops.h
incore.h [GFS2] Quotas non-functional - fix bug 2007-07-09 08:22:26 +01:00
inode.c [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
inode.h [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
Kconfig
lm.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
lm.h
locking.c
log.c [GFS2] fix jdata issues 2007-07-09 08:23:08 +01:00
log.h
lops.c [GFS2] fix jdata issues 2007-07-09 08:23:08 +01:00
lops.h
main.c Remove SLAB_CTOR_CONSTRUCTOR 2007-05-17 05:23:04 -07:00
Makefile
meta_io.c
meta_io.h [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
mount.c [GFS2] use lib/parser for parsing mount options 2007-05-01 09:11:43 +01:00
mount.h
ondisk.c [GFS2] Quotas non-functional - fix another bug 2007-07-09 08:23:01 +01:00
ops_address.c [GFS2] fix jdata issues 2007-07-09 08:23:08 +01:00
ops_address.h [GFS2] Addendum patch 2 for gfs2_grow 2007-07-09 08:22:19 +01:00
ops_dentry.c [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
ops_dentry.h
ops_export.c [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
ops_export.h
ops_file.c [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
ops_file.h
ops_fstype.c [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
ops_fstype.h
ops_inode.c [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
ops_inode.h
ops_super.c [GFS2] Fix bz 224480 and cleanup glock demotion code 2007-05-01 09:10:39 +01:00
ops_super.h [PATCH] Mark struct super_operations const 2007-02-12 09:48:47 -08:00
ops_vm.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
ops_vm.h
quota.c [GFS2] Quotas non-functional - fix another bug 2007-07-09 08:23:01 +01:00
quota.h
recovery.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
recovery.h
rgrp.c [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
rgrp.h [GFS2] Addendum patch 2 for gfs2_grow 2007-07-09 08:22:19 +01:00
super.c [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
super.h
sys.c remove "struct subsystem" as it is no longer needed 2007-05-02 18:57:59 -07:00
sys.h
trans.c
trans.h
util.c [GFS2] Clean up inode number handling 2007-07-09 08:22:24 +01:00
util.h