* [Cluster-devel] [GFS2] Pre-pull patch posting (fixes)
@ 2010-02-12 11:13 Steven Whitehouse
2010-02-12 11:13 ` [Cluster-devel] [PATCH 1/2] GFS2: Fix error code Steven Whitehouse
0 siblings, 1 reply; 3+ messages in thread
From: Steven Whitehouse @ 2010-02-12 11:13 UTC (permalink / raw)
To: cluster-devel.redhat.com
Hi,
Here are a couple of GFS2 fixes. Both are one-liners,
Steve.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Cluster-devel] [PATCH 1/2] GFS2: Fix error code
2010-02-12 11:13 [Cluster-devel] [GFS2] Pre-pull patch posting (fixes) Steven Whitehouse
@ 2010-02-12 11:13 ` Steven Whitehouse
2010-02-12 11:13 ` [Cluster-devel] [PATCH 2/2] GFS2: Fix bmap allocation corner-case bug Steven Whitehouse
0 siblings, 1 reply; 3+ messages in thread
From: Steven Whitehouse @ 2010-02-12 11:13 UTC (permalink / raw)
To: cluster-devel.redhat.com
From: Abhijith Das <adas@redhat.com>
We need this one-liner to signal the mount helper of the 'insufficient journals' condition.
Signed-off-by: Abhijith Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
---
fs/gfs2/ops_fstype.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c
index 8a102f7..a86ed63 100644
--- a/fs/gfs2/ops_fstype.c
+++ b/fs/gfs2/ops_fstype.c
@@ -725,7 +725,7 @@ static int init_journal(struct gfs2_sbd *sdp, int undo)
goto fail;
}
- error = -EINVAL;
+ error = -EUSERS;
if (!gfs2_jindex_size(sdp)) {
fs_err(sdp, "no journals!\n");
goto fail_jindex;
--
1.6.2.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Cluster-devel] [PATCH 2/2] GFS2: Fix bmap allocation corner-case bug
2010-02-12 11:13 ` [Cluster-devel] [PATCH 1/2] GFS2: Fix error code Steven Whitehouse
@ 2010-02-12 11:13 ` Steven Whitehouse
0 siblings, 0 replies; 3+ messages in thread
From: Steven Whitehouse @ 2010-02-12 11:13 UTC (permalink / raw)
To: cluster-devel.redhat.com
This patch solves a corner case during allocation which occurs if both
metadata (indirect) and data blocks are required but there is an
obstacle in the filesystem (e.g. a resource group header or another
allocated block) such that when the allocation is requested only
enough blocks for the metadata are returned.
By changing the exit condition of this loop, we ensure that a
minimum of one data block will always be returned.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
---
fs/gfs2/bmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index 6d47379..583e823 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -541,7 +541,7 @@ static int gfs2_bmap_alloc(struct inode *inode, const sector_t lblock,
*ptr++ = cpu_to_be64(bn++);
break;
}
- } while (state != ALLOC_DATA);
+ } while ((state != ALLOC_DATA) || !dblock);
ip->i_height = height;
gfs2_add_inode_blocks(&ip->i_inode, alloced);
--
1.6.2.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-02-12 11:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-12 11:13 [Cluster-devel] [GFS2] Pre-pull patch posting (fixes) Steven Whitehouse
2010-02-12 11:13 ` [Cluster-devel] [PATCH 1/2] GFS2: Fix error code Steven Whitehouse
2010-02-12 11:13 ` [Cluster-devel] [PATCH 2/2] GFS2: Fix bmap allocation corner-case bug Steven Whitehouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).