From: Dan Carpenter Date: Thu, 4 Jun 2015 13:58:16 +0300 Subject: [Cluster-devel] gfs2: fix quota updates on block boundaries Message-ID: <20150604105816.GB7070@mwanda> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello Abhi Das, The patch 39a725803bee: "gfs2: fix quota updates on block boundaries" from Jun 2, 2015, leads to the following static checker warning: fs/gfs2/quota.c:801 gfs2_adjust_quota() warn: unsigned '()' is never less than zero. fs/gfs2/quota.c 798 loc -= sizeof(q); /* gfs2_internal_read would've advanced the loc ptr */ 799 err = -EIO; 800 be64_add_cpu(&q.qu_value, change); 801 if (be64_to_cpu(q.qu_value) < 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Never true. 802 q.qu_value = 0; /* Never go negative on quota usage */ 803 qd->qd_qb.qb_value = q.qu_value; 804 if (fdq) { regards, dan carpenter