[Cluster-devel] fsck: Add readahead to inodes in pass1

2013-02-19 Thread Steven Whitehouse
Pass 1 in fsck reads all the inodes, in disk block order based upon the rgrp bitmap. This patch adds a function to create a list of blocks of a certain type from the rgrp bitmap. Using this list it is then possible to do readahead on the inode blocks. This gives me a gain of around 25%

[Cluster-devel] [PATCH 01/10] GFS2: Separate LRU scanning from shrinker

2013-02-19 Thread Steven Whitehouse
This breaks out the LRU scanning function from the shrinker in preparation for adding other callers to the LRU scanner. Signed-off-by: Steven Whitehouse swhit...@redhat.com diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 992c5c0..3ad8fd3 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c @@

[Cluster-devel] [PATCH 05/10] GFS2: Merge gfs2_attach_bufdata() into trans.c

2013-02-19 Thread Steven Whitehouse
The locking in gfs2_attach_bufdata() was type specific (data/meta) which made the function rather confusing. This patch moves the core of gfs2_attach_bufdata() into trans.c renaming it gfs2_alloc_bufdata() and moving the locking into gfs2_trans_add_data()/gfs2_trans_add_meta() As a result all of

[Cluster-devel] [PATCH 02/10] GFS2: Merge revoke adding functions

2013-02-19 Thread Steven Whitehouse
This moves the lo_add function for revokes into trans.c, removing a function call and making the code easier to read. Signed-off-by: Steven Whitehouse swhit...@redhat.com diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c index 9ceccb1..9c80742 100644 --- a/fs/gfs2/lops.c +++ b/fs/gfs2/lops.c @@

[Cluster-devel] [PATCH 09/10] GFS2: Get a block reservation before resizing a file

2013-02-19 Thread Steven Whitehouse
From: Bob Peterson rpete...@redhat.com This patch allocates a block reservation structure before growing or shrinking a file. Without this structure, the grow or shink code can reference the bad pointer. Signed-off-by: Bob Peterson rpete...@redhat.com Signed-off-by: Steven Whitehouse

[Cluster-devel] [PATCH 04/10] GFS2: Copy gfs2_trans_add_bh into new data/meta functions

2013-02-19 Thread Steven Whitehouse
This patch copies the body of gfs2_trans_add_bh into the two newly added gfs2_trans_add_data and gfs2_trans_add_meta functions. We can then move the .lo_add functions from lops.c into trans.c and call them directly. As a result of this, we no longer need to use the .lo_add functions at all, so

[Cluster-devel] [PATCH 06/10] GFS2: Clean up freeze code

2013-02-19 Thread Steven Whitehouse
The freeze code has not been looked at a lot recently. Upstream has moved on, and this is an attempt to catch us back up again. There is a vfs level interface for the freeze code which can be called from our (obsolete, but kept for backward compatibility purposes) sysfs freeze interface. This

[Cluster-devel] [PATCH 08/10] GFS2: Split glock lru processing into two parts

2013-02-19 Thread Steven Whitehouse
The intent here is to split the processing of the glock lru list into two parts, so that the selection of glocks and the disposal are separate functions. The plan is then, that further updates can then be made to these functions in the future to improve the selection of glocks and also the

[Cluster-devel] [PATCH 07/10] GFS2: Use -writepages for ordered writes

2013-02-19 Thread Steven Whitehouse
Instead of using a list of buffers to write ahead of the journal flush, this now uses a list of inodes and calls -writepages via filemap_fdatawrite() in order to achieve the same thing. For most use cases this results in a shorter ordered write list, as well as much larger i/os being issued. The

[Cluster-devel] [PATCH] dlm: Allow 64-bit request when CONFIG_COMPAT is on

2013-02-19 Thread Jacek Konieczny
Even if kernel is compiled for 32-bit ABI compatibility it still should able to process 64-bit dlm_write_request struct. The regression was introduced by: b75bc91 dlm: check the maximum size of a request from user Signed-off-by: Jacek Konieczny jaj...@jajcus.net --- fs/dlm/user.c | 4 1

[Cluster-devel] GFS2: Pull request (merge window)

2013-02-19 Thread Steven Whitehouse
Hi, Please consider pulling the following GFS2 patches for the merge window, Steve. --- This is one of the smallest collections of patches for the merge window for some time. There are some clean ups relating to the