|
@@ -500,7 +500,7 @@ u64 gfs2_ri_total(struct gfs2_sbd *sdp)
|
|
|
for (rgrps = 0;; rgrps++) {
|
|
|
loff_t pos = rgrps * sizeof(struct gfs2_rindex);
|
|
|
|
|
|
- if (pos + sizeof(struct gfs2_rindex) >= i_size_read(inode))
|
|
|
+ if (pos + sizeof(struct gfs2_rindex) > i_size_read(inode))
|
|
|
break;
|
|
|
error = gfs2_internal_read(ip, &ra_state, buf, &pos,
|
|
|
sizeof(struct gfs2_rindex));
|