Explorar o código

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.

Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Abhi Das %!s(int64=11) %!d(string=hai) anos
pai
achega
e9fb7c73a4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      fs/gfs2/quota.c

+ 1 - 0
fs/gfs2/quota.c

@@ -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++;
 	}