diff options
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 94b831b8157c..d791bae9de9c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -636,7 +636,7 @@ extern void inode_double_unlock(struct inode *inode1, struct inode *inode2); | |||
636 | * cmpxchg8b without the need of the lock prefix). For SMP compiles | 636 | * cmpxchg8b without the need of the lock prefix). For SMP compiles |
637 | * and 64bit archs it makes no difference if preempt is enabled or not. | 637 | * and 64bit archs it makes no difference if preempt is enabled or not. |
638 | */ | 638 | */ |
639 | static inline loff_t i_size_read(struct inode *inode) | 639 | static inline loff_t i_size_read(const struct inode *inode) |
640 | { | 640 | { |
641 | #if BITS_PER_LONG==32 && defined(CONFIG_SMP) | 641 | #if BITS_PER_LONG==32 && defined(CONFIG_SMP) |
642 | loff_t i_size; | 642 | loff_t i_size; |
@@ -679,12 +679,12 @@ static inline void i_size_write(struct inode *inode, loff_t i_size) | |||
679 | #endif | 679 | #endif |
680 | } | 680 | } |
681 | 681 | ||
682 | static inline unsigned iminor(struct inode *inode) | 682 | static inline unsigned iminor(const struct inode *inode) |
683 | { | 683 | { |
684 | return MINOR(inode->i_rdev); | 684 | return MINOR(inode->i_rdev); |
685 | } | 685 | } |
686 | 686 | ||
687 | static inline unsigned imajor(struct inode *inode) | 687 | static inline unsigned imajor(const struct inode *inode) |
688 | { | 688 | { |
689 | return MAJOR(inode->i_rdev); | 689 | return MAJOR(inode->i_rdev); |
690 | } | 690 | } |