diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-08-09 07:18:45 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2017-05-26 17:12:23 -0400 |
commit | 561d64d1856868e056b7530cb08fd12a4043190a (patch) | |
tree | fd184bc267b32ae4600eee5e70e06455e1f83d8f /fs | |
parent | 8dbebee16f9e8f35ff0396516426318636997b96 (diff) |
Add object list to inodes
This patch adds a list of arbitrary objects to inodes.
This is used by LITMUS^RT'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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/inode.c b/fs/inode.c index 88110fd0b282..d063db37db34 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -374,6 +374,8 @@ void inode_init_once(struct inode *inode) | |||
374 | #ifdef CONFIG_FSNOTIFY | 374 | #ifdef CONFIG_FSNOTIFY |
375 | INIT_HLIST_HEAD(&inode->i_fsnotify_marks); | 375 | INIT_HLIST_HEAD(&inode->i_fsnotify_marks); |
376 | #endif | 376 | #endif |
377 | INIT_LIST_HEAD(&inode->i_obj_list); | ||
378 | mutex_init(&inode->i_obj_mutex); | ||
377 | } | 379 | } |
378 | EXPORT_SYMBOL(inode_init_once); | 380 | EXPORT_SYMBOL(inode_init_once); |
379 | 381 | ||