Messages in this thread | | | Date | Wed, 22 Feb 2006 18:54:01 +0000 | From | Pavel Machek <> | Subject | Re: 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/
| |