diff options
Diffstat (limited to 'fs/fat/fat.h')
-rw-r--r-- | fs/fat/fat.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/fat/fat.h b/fs/fat/fat.h index a7b1d86b37c7..f16948ed5bf8 100644 --- a/fs/fat/fat.h +++ b/fs/fat/fat.h | |||
@@ -218,6 +218,20 @@ static inline sector_t fat_clus_to_blknr(struct msdos_sb_info *sbi, int clus) | |||
218 | + sbi->data_start; | 218 | + sbi->data_start; |
219 | } | 219 | } |
220 | 220 | ||
221 | static inline loff_t fat_i_pos_read(struct msdos_sb_info *sbi, | ||
222 | struct inode *inode) | ||
223 | { | ||
224 | loff_t i_pos; | ||
225 | #if BITS_PER_LONG == 32 | ||
226 | spin_lock(&sbi->inode_hash_lock); | ||
227 | #endif | ||
228 | i_pos = MSDOS_I(inode)->i_pos; | ||
229 | #if BITS_PER_LONG == 32 | ||
230 | spin_unlock(&sbi->inode_hash_lock); | ||
231 | #endif | ||
232 | return i_pos; | ||
233 | } | ||
234 | |||
221 | static inline void fat16_towchar(wchar_t *dst, const __u8 *src, size_t len) | 235 | static inline void fat16_towchar(wchar_t *dst, const __u8 *src, size_t len) |
222 | { | 236 | { |
223 | #ifdef __BIG_ENDIAN | 237 | #ifdef __BIG_ENDIAN |