Skip to contentSkip to conversation

gfs2: Fix return value in slot_get()

PATCH New Abhi Das 2 participants 2 messages Mar 31, 2014 GFS2 file system

lore
Share & tools
lore

Abhi Das

author
#0 lore raw

PATCH 1/1 gfs2: Fix return value in slot_get()

ENOSPC was being returned in slot_get inspite of successful execution of the function. This patch fixes this return code.

---
 fs/gfs2/quota.c | 1 +
 1 file changed, 1 insertion(+)
fs/gfs2/quota.c +1 -0
index 27f9435..c4effff 100644
@@ -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++;
 	}
Signature · 1 line
1.8.1.4
#1 lore raw

PATCH 1/1 gfs2: Fix return value in slot_get()

Hi,

Quoted 9 lines · Abhi Das

ENOSPC was being returned in slot_get inspite of successful execution of the function. This patch fixes this return code.

---
 fs/gfs2/quota.c | 1 +
 1 file changed, 1 insertion(+)

Now in the -nmw git tree. Thanks,

Steve.

Quoted 12 lines
fs/gfs2/quota.c +1 -0
index 27f9435..c4effff 100644
@@ -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++;
 	}