OSDN Git Service

e2fsck: use blk_t instead of blk64_t in check_resize_inode()
authorTheodore Ts'o <tytso@mit.edu>
Tue, 3 Dec 2013 02:49:24 +0000 (21:49 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 3 Dec 2013 02:49:24 +0000 (21:49 -0500)
The resize inode only works on 32-bit block numbers, so use blk_t
instead of blk64_t.  This avoids some -Wconversion noise, and slims
the compiled code slightly, especially on 32-bit platforms.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/super.c

index 352f16d..ce824f4 100644 (file)
@@ -317,7 +317,7 @@ void check_resize_inode(e2fsck_t ctx)
        struct problem_context  pctx;
        int             i, gdt_off, ind_off;
        dgrp_t          j;
-       blk64_t         blk, pblk;
+       blk_t           blk, pblk;
        blk_t           expect; /* for resize inode, which is 32-bit only */
        __u32           *dind_buf = 0, *ind_buf;
        errcode_t       retval;