f2fs.h (fa528722d06ecbee9d918b9eec58c5d4c2978839) | f2fs.h (c6ac4c0ec416e77cab09cac6cee2d100fbd7fc82) |
---|---|
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 --- 1059 unchanged lines hidden (view full) --- 1068 1069 addr += (nr >> 3); 1070 mask = 1 << (7 - (nr & 0x07)); 1071 ret = mask & *addr; 1072 *addr &= ~mask; 1073 return ret; 1074} 1075 | 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 --- 1059 unchanged lines hidden (view full) --- 1068 1069 addr += (nr >> 3); 1070 mask = 1 << (7 - (nr & 0x07)); 1071 ret = mask & *addr; 1072 *addr &= ~mask; 1073 return ret; 1074} 1075 |
1076static inline void f2fs_change_bit(unsigned int nr, char *addr) 1077{ 1078 int mask; 1079 1080 addr += (nr >> 3); 1081 mask = 1 << (7 - (nr & 0x07)); 1082 *addr ^= mask; 1083} 1084 |
|
1076/* used for f2fs_inode_info->flags */ 1077enum { 1078 FI_NEW_INODE, /* indicate newly allocated inode */ 1079 FI_DIRTY_INODE, /* indicate inode is dirty or not */ 1080 FI_DIRTY_DIR, /* indicate directory has dirty pages */ 1081 FI_INC_LINK, /* need to increment i_nlink */ 1082 FI_ACL_MODE, /* indicate acl mode */ 1083 FI_NO_ALLOC, /* should not allocate any blocks */ --- 515 unchanged lines hidden --- | 1085/* used for f2fs_inode_info->flags */ 1086enum { 1087 FI_NEW_INODE, /* indicate newly allocated inode */ 1088 FI_DIRTY_INODE, /* indicate inode is dirty or not */ 1089 FI_DIRTY_DIR, /* indicate directory has dirty pages */ 1090 FI_INC_LINK, /* need to increment i_nlink */ 1091 FI_ACL_MODE, /* indicate acl mode */ 1092 FI_NO_ALLOC, /* should not allocate any blocks */ --- 515 unchanged lines hidden --- |