diff options
| author | Matthew Wilcox <willy@debian.org> | 2002-11-15 18:25:30 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-11-15 18:25:30 -0800 |
| commit | cd574b7454f33edae3ecdfd7c93e9340d1ce65c9 (patch) | |
| tree | 7e103db96de9e1da36f20aea26af5c0b22b45e02 /include/linux/sched.h | |
| parent | f7efec4a899f5bfbf91424024246900c1ff451ce (diff) | |
[PATCH] Remove d_path from sched.h
This patch from William Lee Irwin III privatizes __d_path() to dcache.c,
uninlines d_path(), moves its declaration to dcache.h, moves it to
dcache.c, and exports d_path() instead of __d_path().
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 93b1328d59e4..2a339b572d04 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -848,26 +848,6 @@ static inline void task_unlock(struct task_struct *p) { spin_unlock(&p->alloc_lock); } - -/* write full pathname into buffer and return start of pathname */ -static inline char * d_path(struct dentry *dentry, struct vfsmount *vfsmnt, - char *buf, int buflen) -{ - char *res; - struct vfsmount *rootmnt; - struct dentry *root; - read_lock(¤t->fs->lock); - rootmnt = mntget(current->fs->rootmnt); - root = dget(current->fs->root); - read_unlock(¤t->fs->lock); - spin_lock(&dcache_lock); - res = __d_path(dentry, vfsmnt, root, rootmnt, buf, buflen); - spin_unlock(&dcache_lock); - dput(root); - mntput(rootmnt); - return res; -} - /** * get_task_mm - acquire a reference to the task's mm |
