lkml.org 
[lkml]   [2006]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 08/16] GFS2: Resource group code

>+#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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-09-04 16:57    [W:0.050 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site