aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2013-06-23 09:26:01 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2014-06-07 05:30:31 -0400
commit3df2b0b4f410ea57613477ca6b4e015fbea4931a (patch)
treec53c9bc9d76a945b7d9997a7662ca1d3d6921965 /include
parent588b6c96632ad0c9b5bfac55e90e14580d8ca377 (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 'include')
-rw-r--r--include/linux/fs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 65c2be22b601..8a0ac17dc350 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -508,6 +508,7 @@ static inline int mapping_writably_mapped(struct address_space *mapping)
508 508
509struct posix_acl; 509struct posix_acl;
510#define ACL_NOT_CACHED ((void *)(-1)) 510#define ACL_NOT_CACHED ((void *)(-1))
511struct inode_obj_id_table;
511 512
512#define IOP_FASTPERM 0x0001 513#define IOP_FASTPERM 0x0001
513#define IOP_LOOKUP 0x0002 514#define IOP_LOOKUP 0x0002
@@ -606,6 +607,10 @@ struct inode {
606#ifdef CONFIG_IMA 607#ifdef CONFIG_IMA
607 atomic_t i_readcount; /* struct files open RO */ 608 atomic_t i_readcount; /* struct files open RO */
608#endif 609#endif
610
611 struct list_head i_obj_list;
612 struct mutex i_obj_mutex;
613
609 void *i_private; /* fs or device private pointer */ 614 void *i_private; /* fs or device private pointer */
610}; 615};
611 616