diff options
author | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2010-11-02 10:10:56 -0400 |
---|---|---|
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2011-02-10 07:51:43 -0500 |
commit | a68a27b6f2354273bacc39c3dd06456edb202230 (patch) | |
tree | d73396dab134842ecd1e86d665718e75012e7e78 /include | |
parent | 75a25637bf8a1b8fbed2368c0a3ec15c66a534f1 (diff) | |
download | op-kernel-dev-a68a27b6f2354273bacc39c3dd06456edb202230.zip op-kernel-dev-a68a27b6f2354273bacc39c3dd06456edb202230.tar.gz |
IMA: convert i_readcount to atomic
Convert the inode's i_readcount from an unsigned int to atomic.
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Acked-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index baf3e55..ef85322 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -794,8 +794,7 @@ struct inode { #endif #ifdef CONFIG_IMA - /* protected by i_lock */ - unsigned int i_readcount; /* struct files open RO */ + atomic_t i_readcount; /* struct files open RO */ #endif atomic_t i_writecount; #ifdef CONFIG_SECURITY |