]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
GFS2: Fix error code
authorAbhijith Das <adas@redhat.com>
Fri, 5 Feb 2010 23:25:41 +0000 (18:25 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 12 Feb 2010 10:15:51 +0000 (10:15 +0000)
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

index 8a102f7310034110b6438d932c12094d0cd7b5eb..a86ed63815667f456a88e24cad30e3a60bb67e34 100644 (file)
@@ -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;