GFS2: Fix return value in slot_get()
authorAbhi Das <adas@redhat.com>
Mon, 31 Mar 2014 06:19:29 +0000 (01:19 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 31 Mar 2014 09:43:05 +0000 (10:43 +0100)
ENOSPC was being returned in slot_get inspite of successful
execution of the function. This patch fixes this return
code.

Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/quota.c

index 27f9435ddd204ab2422a4ea571736624a7a108e5..c4effff7cf559c701e890e804cef81dfb1cac30e 100644 (file)
@@ -332,6 +332,7 @@ static int slot_get(struct gfs2_quota_data *qd)
        if (bit < sdp->sd_quota_slots) {
                set_bit(bit, sdp->sd_quota_bitmap);
                qd->qd_slot = bit;
+               error = 0;
 out:
                qd->qd_slot_count++;
        }
This page took 0.025786 seconds and 5 git commands to generate.