aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-01-29 08:13:26 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-15 02:21:37 -0400
commit990d6c2d7aee921e3bce22b2d6a750fd552262be (patch)
treeaf273c4bfbfd0342d39d05d5a017382eb32a7538 /include/linux/fs.h
parentf52e0c11305aa09ed56cad97ffc8f0cdc3d78b5d (diff)
vfs: Add name to file handle conversion support
The syscall also return mount id which can be used to lookup file system specific information such as uuid in /proc/<pid>/mountinfo Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index b7178b05cf3a..3f64630c0e10 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -978,6 +978,13 @@ struct file {
978#endif 978#endif
979}; 979};
980 980
981struct file_handle {
982 __u32 handle_bytes;
983 int handle_type;
984 /* file identifier */
985 unsigned char f_handle[0];
986};
987
981#define get_file(x) atomic_long_inc(&(x)->f_count) 988#define get_file(x) atomic_long_inc(&(x)->f_count)
982#define fput_atomic(x) atomic_long_add_unless(&(x)->f_count, -1, 1) 989#define fput_atomic(x) atomic_long_add_unless(&(x)->f_count, -1, 1)
983#define file_count(x) atomic_long_read(&(x)->f_count) 990#define file_count(x) atomic_long_read(&(x)->f_count)