projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vfs: add file_path() helper
[linux-2.6-block.git]
/
fs
/
open.c
diff --git
a/fs/open.c
b/fs/open.c
index b1c5823b7f1175cc26429811873738ca0b7515a5..1dbc79358d591833efa7409b946b0c9945d1b289 100644
(file)
--- a/
fs/open.c
+++ b/
fs/open.c
@@
-823,6
+823,12
@@
int finish_no_open(struct file *file, struct dentry *dentry)
}
EXPORT_SYMBOL(finish_no_open);
+char *file_path(struct file *filp, char *buf, int buflen)
+{
+ return d_path(&filp->f_path, buf, buflen);
+}
+EXPORT_SYMBOL(file_path);
+
/**
* vfs_open - open the file at the given path
* @path: path to open