/* * dcookies.h * * Persistent cookie-path mappings * * Copyright 2002 John Levon <levon@movementarian.org> */ #ifndef DCOOKIES_H #define DCOOKIES_H #ifdef CONFIG_PROFILING #include <linux/dcache.h> #include <linux/types.h> struct dcookie_user; struct path; /** * dcookie_register - register a user of dcookies * * Register as a dcookie user. Returns %NULL on failure. */ struct dcookie_user * dcookie_register(void); /** * dcookie_unregister - unregister a user of dcookies * * Unregister as a dcookie user. This may invalidate * any dcookie values returned from get_dcookie(). */ void dcookie_unregister(struct dcookie_user * user); /** * get_dcookie - acquire a dcookie * * Convert the given dentry/vfsmount pair into * a cookie value. * * Returns -EINVAL if no living task has registered as a * dcookie user. * * Returns 0 on success, with *cookie filled in */ int get_dcookie(const struct path *path, unsigned long *cookie); #else
static inline struct dcookie_user * dcookie_register(void) { return NULL; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
John Levon | 11 | 78.57% | 1 | 33.33% |
Adrian Bunk | 2 | 14.29% | 1 | 33.33% |
Mika Kukkonen | 1 | 7.14% | 1 | 33.33% |
Total | 14 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Levon | 11 | 84.62% | 1 | 50.00% |
Adrian Bunk | 2 | 15.38% | 1 | 50.00% |
Total | 13 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Levon | 19 | 86.36% | 2 | 50.00% |
Jan Blunck | 2 | 9.09% | 1 | 25.00% |
Al Viro | 1 | 4.55% | 1 | 25.00% |
Total | 22 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
John Levon | 97 | 85.09% | 2 | 25.00% |
Adrian Bunk | 4 | 3.51% | 1 | 12.50% |
Jan Blunck | 4 | 3.51% | 1 | 12.50% |
Alexey Dobriyan | 3 | 2.63% | 1 | 12.50% |
Bob Nelson | 3 | 2.63% | 1 | 12.50% |
Al Viro | 2 | 1.75% | 1 | 12.50% |
Mika Kukkonen | 1 | 0.88% | 1 | 12.50% |
Total | 114 | 100.00% | 8 | 100.00% |