Files
linux-stable-mirror/include/linux
Alex Elder aa711ee340 ceph: define snap counts as u32 everywhere
There are two structures in which a count of snapshots are
maintained:

    struct ceph_snap_context {
	...
        u32 num_snaps;
	...
    }
and
    struct ceph_snap_realm {
	...
        u32 num_prior_parent_snaps;   /*  had prior to parent_since */
	...
        u32 num_snaps;
	...
    }

These fields never take on negative values (e.g., to hold special
meaning), and so are really inherently unsigned.  Furthermore they
take their value from over-the-wire or on-disk formatted 32-bit
values.

So change their definition to have type u32, and change some spots
elsewhere in the code to account for this change.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-07-30 18:15:47 -07:00
..
2012-07-30 18:15:23 -07:00
2012-05-25 12:46:23 +05:30
2012-05-29 23:28:33 -04:00
2012-05-22 11:32:31 +02:00
2012-05-21 21:09:38 +02:00
2012-05-31 17:49:30 -07:00
2012-05-31 17:49:32 -07:00
2012-05-31 17:49:26 -07:00
2012-05-31 17:49:30 -07:00
2012-05-29 23:28:41 -04:00
2012-05-22 15:20:28 -04:00
2012-05-29 16:22:19 -07:00
2012-05-29 22:33:55 -04:00
2012-05-26 14:17:30 -04:00
2012-05-21 14:31:48 +01:00
2012-06-01 12:58:52 -04:00
2012-05-31 17:49:26 -07:00
2012-05-29 16:22:28 -07:00
2012-05-21 16:16:58 -07:00
2012-05-22 12:16:16 +09:30