diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-10 14:24:06 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-10 14:24:06 -0400 |
commit | 22341d8f33084c575ce5b7ea63b07d7290b68e2d (patch) | |
tree | 7366752dec4d59fd15b25a9f56ea09cd78c023e9 /fs/befs/befs.h | |
parent | e899108994540f09dae236571d100af6e0749905 (diff) |
befs: constify stuff a bit
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/befs/befs.h')
-rw-r--r-- | fs/befs/befs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/befs/befs.h b/fs/befs/befs.h index 35d19e8731e3..e0f59263a96d 100644 --- a/fs/befs/befs.h +++ b/fs/befs/befs.h | |||
@@ -116,7 +116,7 @@ BEFS_I(const struct inode *inode) | |||
116 | } | 116 | } |
117 | 117 | ||
118 | static inline befs_blocknr_t | 118 | static inline befs_blocknr_t |
119 | iaddr2blockno(struct super_block *sb, befs_inode_addr * iaddr) | 119 | iaddr2blockno(struct super_block *sb, const befs_inode_addr *iaddr) |
120 | { | 120 | { |
121 | return ((iaddr->allocation_group << BEFS_SB(sb)->ag_shift) + | 121 | return ((iaddr->allocation_group << BEFS_SB(sb)->ag_shift) + |
122 | iaddr->start); | 122 | iaddr->start); |
@@ -141,7 +141,7 @@ befs_iaddrs_per_block(struct super_block *sb) | |||
141 | } | 141 | } |
142 | 142 | ||
143 | static inline int | 143 | static inline int |
144 | befs_iaddr_is_empty(befs_inode_addr * iaddr) | 144 | befs_iaddr_is_empty(const befs_inode_addr *iaddr) |
145 | { | 145 | { |
146 | return (!iaddr->allocation_group) && (!iaddr->start) && (!iaddr->len); | 146 | return (!iaddr->allocation_group) && (!iaddr->start) && (!iaddr->len); |
147 | } | 147 | } |