aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2015-08-09 07:18:45 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2015-08-09 06:21:16 -0400
commit13a30b8fd8fd4a5f41d0bb82718024e5a3823c2e (patch)
tree7724cd95c0ea4c928aa52afc53fa26effbcf8427 /fs
parentbdd72ea40e761db68dfbf564af6d18a545f84382 (diff)
Add object list to inodes
This patch adds a list of arbitrary objects to inodes. This is used by Linux's locking API to attach lock objects to inodes (which represent namespaces in Linux's locking API).
Diffstat (limited to 'fs')
-rw-r--r--fs/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/inode.c b/fs/inode.c
index 6e342cadef81..7897884bb087 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -364,6 +364,8 @@ void inode_init_once(struct inode *inode)
364#ifdef CONFIG_FSNOTIFY 364#ifdef CONFIG_FSNOTIFY
365 INIT_HLIST_HEAD(&inode->i_fsnotify_marks); 365 INIT_HLIST_HEAD(&inode->i_fsnotify_marks);
366#endif 366#endif
367 INIT_LIST_HEAD(&inode->i_obj_list);
368 mutex_init(&inode->i_obj_mutex);
367} 369}
368EXPORT_SYMBOL(inode_init_once); 370EXPORT_SYMBOL(inode_init_once);
369 371