mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
f2fs: decouple F2FS_MAP_ from buffer head flags
m_flags is never interchanged with the buffer_heads b_flags directly, so use separate codepoints from that. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
committed by
Jaegeuk Kim
parent
1182a31c21
commit
baa3dcf61c
@@ -692,13 +692,11 @@ struct extent_tree_info {
|
||||
};
|
||||
|
||||
/*
|
||||
* This structure is taken from ext4_map_blocks.
|
||||
*
|
||||
* Note that, however, f2fs uses NEW and MAPPED flags for f2fs_map_blocks().
|
||||
* State of block returned by f2fs_map_blocks.
|
||||
*/
|
||||
#define F2FS_MAP_NEW (1 << BH_New)
|
||||
#define F2FS_MAP_MAPPED (1 << BH_Mapped)
|
||||
#define F2FS_MAP_UNWRITTEN (1 << BH_Unwritten)
|
||||
#define F2FS_MAP_NEW (1U << 0)
|
||||
#define F2FS_MAP_MAPPED (1U << 1)
|
||||
#define F2FS_MAP_UNWRITTEN (1U << 2)
|
||||
#define F2FS_MAP_FLAGS (F2FS_MAP_NEW | F2FS_MAP_MAPPED |\
|
||||
F2FS_MAP_UNWRITTEN)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user