diff options
author | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2013-12-11 15:20:54 -0500 |
---|---|---|
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2014-03-07 11:31:55 -0500 |
commit | d984ea604943bbeedde4e9715984eb942a298383 (patch) | |
tree | df756eca5660069dad6e63f6ce46501267b6baf0 /include/linux/fs.h | |
parent | 52a13284844b354c7a37533f5366cb5b653a76b3 (diff) |
fs: move i_readcount
On a 64-bit system, a hole exists in the 'inode' structure after
i_writecount. This patch moves i_readcount to fill this hole.
Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Acked-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 121f11f001c0..e88219d3f42b 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -586,6 +586,9 @@ struct inode { | |||
586 | atomic_t i_count; | 586 | atomic_t i_count; |
587 | atomic_t i_dio_count; | 587 | atomic_t i_dio_count; |
588 | atomic_t i_writecount; | 588 | atomic_t i_writecount; |
589 | #ifdef CONFIG_IMA | ||
590 | atomic_t i_readcount; /* struct files open RO */ | ||
591 | #endif | ||
589 | const struct file_operations *i_fop; /* former ->i_op->default_file_ops */ | 592 | const struct file_operations *i_fop; /* former ->i_op->default_file_ops */ |
590 | struct file_lock *i_flock; | 593 | struct file_lock *i_flock; |
591 | struct address_space i_data; | 594 | struct address_space i_data; |
@@ -606,9 +609,6 @@ struct inode { | |||
606 | struct hlist_head i_fsnotify_marks; | 609 | struct hlist_head i_fsnotify_marks; |
607 | #endif | 610 | #endif |
608 | 611 | ||
609 | #ifdef CONFIG_IMA | ||
610 | atomic_t i_readcount; /* struct files open RO */ | ||
611 | #endif | ||
612 | void *i_private; /* fs or device private pointer */ | 612 | void *i_private; /* fs or device private pointer */ |
613 | }; | 613 | }; |
614 | 614 | ||