Re: GFS2 Filesystem [15/16]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux