Re: [PATCH 08/16] GFS2: Resource group code

From: Jan Engelhardt
Date: Mon Sep 04 2006 - 10:51:30 EST



>+#define BFITNOENT 0xFFFFFFFF

See previous mail, (uint32_t)-1 / (uint32_t)~0 or leave it.

>+static inline int rgrp_contains_block(struct gfs2_rindex *ri, uint64_t block)
>+{
>+ uint64_t first = ri->ri_data0;
>+ uint64_t last = first + ri->ri_data;
>+ return !!(first <= block && block < last);
>+}

No need for the !!, the expression !! is operating on is already a boolean.
IOW,

return first <= block && block < last;


>+/**
>+ * gfs2_alloc_put - throw away the struct gfs2_alloc for an inode
>+ * @ip: the inode
>+ *
>+ */
>+
>+void gfs2_alloc_put(struct gfs2_inode *ip)
>+{
>+ return;
>+}

Missing some code? Code that comes later?


Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/