Defined in 1 files as a function:
Referenced in 6 files:
- fs/btrfs/defrag.c, line 848
- fs/btrfs/file.c, line 830
- fs/btrfs/free-space-cache.c, line 446
- fs/btrfs/inode.c, line 5072
- fs/btrfs/reflink.c, line 89
- fs/btrfs/relocation.c, line 2914
Smatch caller information:
fs/btrfs/file.c get_prepare_gfp_flags() -> btrfs_alloc_write_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mapping | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
fs/btrfs/inode.c btrfs_truncate_block() -> btrfs_alloc_write_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/btrfs/free-space-cache.c io_ctl_prepare_pages() -> btrfs_alloc_write_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &caching_ctl->mutex | ||
| HALF_LOCKED2 | &fs_info->commit_root_sem | ||
| HALF_LOCKED2 | &pool->lock |
fs/btrfs/relocation.c relocate_one_folio() -> btrfs_alloc_write_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mapping | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &fs_info->cleaner_mutex | ||
| HALF_LOCKED2 | &fs_info->reclaim_bgs_lock | ||
| TYPE_LOCK | (struct btrfs_fs_info)->cleaner_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->reclaim_bgs_lock |
fs/btrfs/defrag.c defrag_prepare_one_folio() -> btrfs_alloc_write_mask()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mapping | 4096-ptr_max |
| CAPPED_DATA | 0 | mapping->writeback_index | 1 |
| NOSPEC | 0 | mapping->writeback_index | |
| USER_DATA | 0 | mapping->writeback_index | 0-524287[c] |
| LOCK2 | &inode->vfs_inode.i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/btrfs/reflink.c copy_inline_to_page() -> btrfs_alloc_write_mask()
| Type | Parameter | Key | Value |
|---|