Defined in 1 files as a function:
Referenced in 9 files:
- fs/lockd/clntlock.c, line 188
- fs/lockd/svcsubs.c, line 162
- fs/nfs/callback_proc.c, line 182
- fs/nfs/delegation.c, line 1204
- fs/nfs/dir.c
- fs/nfs/flexfilelayout/flexfilelayout.c, line 191
- fs/nfs/inode.c, line 311
- fs/nfs/nfs4proc.c, line 7656
- fs/nfs/unlink.c, line 142
Smatch caller information:
fs/nfs/inode.c nfs_find_actor() -> nfs_compare_fh()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | global &inode_hash_lock |
fs/nfs/delegation.c nfs_delegation_find_inode_server() -> nfs_compare_fh()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| DATA_SOURCE | 0 | a | $1 |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | &delegation->lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct nfs_delegation)->lock |
fs/lockd/clntlock.c nlmclnt_grant() -> nfs_compare_fh()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 1 | b | 4096-ptr_max |
| PARAM_VALUE | 1 | b->size | 0-128 |
| BUF_SIZE | 1 | b | 130 |
| CAPPED_DATA | 1 | b->size | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | global &nlm_blocked_lock |
fs/nfs/callback_proc.c nfs_layout_find_inode_by_fh() -> nfs_compare_fh()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | a | $1 |
| LOCK2 | rcu_read |
fs/nfs/flexfilelayout/flexfilelayout.c ff_dss_match_fh() -> nfs_compare_fh()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 1 | b | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &inode->i_lock | ||
| TYPE_LOCK | (struct inode)->i_lock |
fs/nfs/dir.c nfs_lookup_revalidate_dentry() -> nfs_compare_fh()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 1 | b | 4096-ptr_max |
| BUF_SIZE | 1 | b | 130 |
| DATA_SOURCE | 1 | b | r nfs_alloc_fhandle |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dentry->d_lockref.lock | ||
| HALF_LOCKED2 | &dir->i_rwsem |
fs/nfs/dir.c nfs_same_file() -> nfs_compare_fh()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 0 | a->size | 1-u16max |
| PARAM_VALUE | 0 | *a->data | 0-255 |
| PARAM_VALUE | 1 | b | 4096-ptr_max |
| BUF_SIZE | 0 | a | 130 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | a->size | 1-128[c] |
| USER_PTR | 0 | a->data | |
| HALF_LOCKED2 | &dentry->d_lockref.lock | ||
| HALF_LOCKED2 | &dir_fp->readdir_lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/lockd/svcsubs.c nlm_lookup_file() -> nfs_compare_fh()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 1 | b | 4096-ptr_max |
| PARAM_VALUE | 1 | b->size | 0-128 |
| LOCK2 | global &nlm_file_mutex |
fs/nfs/nfs4proc.c nfs4_wake_lock_waiter() -> nfs_compare_fh()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 1 | b | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &x->lock | ||
| HALF_LOCKED2 | flags |
fs/nfs/unlink.c nfs_call_unlink() -> nfs_compare_fh()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | a | 4096-ptr_max |
| PARAM_VALUE | 1 | b | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &alias->d_lockref.lock | ||
| HALF_LOCKED2 | &dentry->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &dentry->d_sb->s_vfs_rename_mutex | ||
| HALF_LOCKED2 | &inode->i_lock | ||
| TYPE_LOCK | (struct lockref)->lock |