To check whether bitmap are all zeros or all ones, I think memcmp is more neat.
But I don't know exactly performance gap between memcmp and find_next_bit.
-Original Message-
From: Chao Yu [mailto:chao2...@samsung.com]
Sent: Thursday, October 24, 2013 5:21 PM
To: jaegeuk@samsung.com
From: Changman Lee cm224@samsung.com
From: Changman Lee cm224@samsung.com
Only one dirty type is set in __locate_dirty_segment and we can know
dirty type of segment. So we don't need to check other dirty types.
Signed-off-by: Changman Lee cm224@samsung.com
Signed-off-by: Jaegeuk Kim
The deadlock is found through the following scenario.
sys_mkdir()
- f2fs_add_link()
- __f2fs_add_link()
- init_inode_metadata()
: lock_page(inode);
- f2fs_init_acl()
- f2fs_set_acl()
- f2fs_setxattr(..., NULL)
: This NULL page incurs a deadlock at