lkml.org 
[lkml]   [2006]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: GFS2 Filesystem [15/16]
> +#include <linux/module.h>
> +#include <linux/slab.h>
> +#include <linux/module.h>
> +#include <linux/init.h>
> +#include <linux/types.h>
> +#include <linux/fs.h>
> +#include <linux/smp_lock.h>
> +
> +#include "../../lm_interface.h"

ugly...

> +{
> + char *c;
> + unsigned int jid;
> + struct nolock_lockspace *nl;
> +
> + /* If there is a "jid=" in the hostdata, return that jid.
> + Otherwise, return zero. */

useful comment of the year 2006....

> + c = strstr(host_data, "jid=");
> + if (!c)
> + jid = 0;
> + else {
> + c += 4;
> + sscanf(c, "%u", &jid);
> + }
> +

...
> +
> +static int nolock_get_lock(lm_lockspace_t *lockspace, struct lm_lockname *name,
> + lm_lock_t **lockp)
> +{
> + *lockp = (lm_lock_t *)lockspace;


typedef abuse?

--
Thanks, Sharp!
-
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-02-24 23:05    [W:1.565 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site