diff --git a/src/add-ons/kernel/file_systems/bfs/bfs.h b/src/add-ons/kernel/file_systems/bfs/bfs.h index aba6a04c14..997d9ea233 100644 --- a/src/add-ons/kernel/file_systems/bfs/bfs.h +++ b/src/add-ons/kernel/file_systems/bfs/bfs.h @@ -187,14 +187,6 @@ struct bfs_inode { small_data small_data_start[0]; #endif - inline small_data *SmallDataStart() const { - #if __MWERKS__ - return (small_data *)(&pad[4] /* last item in pad + sizeof(int32) */); - #else - return small_data_start; - #endif - } - int32 Magic1() const { return BFS_ENDIAN_TO_HOST_INT32(magic1); } int32 UserID() const { return BFS_ENDIAN_TO_HOST_INT32(uid); } int32 GroupID() const { return BFS_ENDIAN_TO_HOST_INT32(gid); } @@ -205,6 +197,8 @@ struct bfs_inode { bigtime_t LastModifiedTime() const { return BFS_ENDIAN_TO_HOST_INT64(last_modified_time); } bigtime_t CreateTime() const { return BFS_ENDIAN_TO_HOST_INT64(create_time); } + inline small_data *SmallDataStart(); + status_t InitCheck(Volume *volume); // defined in Inode.cpp }; @@ -382,4 +376,19 @@ small_data::IsLast(const bfs_inode *inode) const } +/************************ bfs_inode inline functions ************************/ +// #pragma mark - + + +inline small_data * +bfs_inode::SmallDataStart() +{ +#if __MWERKS__ + return (small_data *)(&pad[4] /* last item in pad + sizeof(int32) */); +#else + return small_data_start; +#endif +} + + #endif /* BFS_H */