f2fs.h (317e13009682d4614ec9ac7c2762eaee26f93ed3) | f2fs.h (ced2c7ea8e99b46755a270872cd5ba61c27cffad) |
---|---|
1/* 2 * fs/f2fs/f2fs.h 3 * 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com/ 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 1112 unchanged lines hidden (view full) --- 1121 clear_bit(type, &sbi->s_flag); 1122} 1123 1124static inline unsigned long long cur_cp_version(struct f2fs_checkpoint *cp) 1125{ 1126 return le64_to_cpu(cp->checkpoint_ver); 1127} 1128 | 1/* 2 * fs/f2fs/f2fs.h 3 * 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com/ 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 1112 unchanged lines hidden (view full) --- 1121 clear_bit(type, &sbi->s_flag); 1122} 1123 1124static inline unsigned long long cur_cp_version(struct f2fs_checkpoint *cp) 1125{ 1126 return le64_to_cpu(cp->checkpoint_ver); 1127} 1128 |
1129static inline __u64 cur_cp_crc(struct f2fs_checkpoint *cp) 1130{ 1131 size_t crc_offset = le32_to_cpu(cp->checksum_offset); 1132 return le32_to_cpu(*((__le32 *)((unsigned char *)cp + crc_offset))); 1133} 1134 |
|
1129static inline bool __is_set_ckpt_flags(struct f2fs_checkpoint *cp, unsigned int f) 1130{ 1131 unsigned int ckpt_flags = le32_to_cpu(cp->ckpt_flags); 1132 1133 return ckpt_flags & f; 1134} 1135 1136static inline bool is_set_ckpt_flags(struct f2fs_sb_info *sbi, unsigned int f) --- 1521 unchanged lines hidden --- | 1135static inline bool __is_set_ckpt_flags(struct f2fs_checkpoint *cp, unsigned int f) 1136{ 1137 unsigned int ckpt_flags = le32_to_cpu(cp->ckpt_flags); 1138 1139 return ckpt_flags & f; 1140} 1141 1142static inline bool is_set_ckpt_flags(struct f2fs_sb_info *sbi, unsigned int f) --- 1521 unchanged lines hidden --- |