Defined in 2 files as a function:
- include/linux/filelock.h, line 189 (as a function)
- include/linux/filelock.h, line 318 (as a function)
Referenced in 9 files:
- fs/afs/flock.c
- fs/ceph/locks.c
- fs/dlm/plock.c
- fs/gfs2/file.c, line 1505
- fs/lockd/svcsubs.c, line 76
- fs/nfs/write.c
- fs/ocfs2/locks.c, line 30
- fs/smb/client/file.c, line 2084
- fs/smb/server/vfs.c, line 315
Smatch caller information:
fs/dlm/plock.c dlm_posix_cancel() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1),1-s32max |
| BUF_SIZE | 0 | fl | (-1),1-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | (-1),1-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $3 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x1,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ls->ls_sem |
fs/dlm/plock.c dlm_posix_get() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | (-1)-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $3 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x1,0xffffffff |
| NOSPEC | 0 | fl->fl_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-2 |
| USER_DATA | 0 | fl->fl_start | s64min-9223372036854775806[c][u] |
| HALF_LOCKED2 | &ls->ls_sem |
fs/dlm/plock.c dlm_posix_lock() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| PARAM_VALUE | 0 | fl->c.flc_type | 0-1,3-255 |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | (-1)-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $4 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x1,0xffffffffffffffff |
| NOSPEC | 0 | fl->fl_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-1 |
| USER_DATA | 0 | fl->fl_start | s64min-9223372036854775806[c][u] |
| HALF_LOCKED2 | &ls->ls_sem |
fs/afs/flock.c afs_grant_locks() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &vnode->lock | ||
| TYPE_LOCK | (struct afs_vnode)->lock |
fs/afs/flock.c afs_next_locker() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &vnode->lock | ||
| HALF_LOCKED2 | &vnode->cb_lock.lock | ||
| TYPE_LOCK | (struct afs_vnode)->lock |
fs/ceph/locks.c ceph_flock() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 6679205499366121472,8240022910925856768 |
| PARAM_VALUE | 0 | fl->c.flc_type | 1-2 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x2,0xffffffffffffffff |
| MEM_ZERO | 0 | fl | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/ceph/locks.c ceph_lock() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| PARAM_VALUE | 0 | fl->c.flc_type | 1-255 |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $2 |
| FUZZY_MAX | 0 | fl->c.flc_type | 1 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x1,0xffffffffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 1-2 |
| USER_DATA | 0 | fl->fl_start | s64min-9223372036854775806[c][u] |
fs/smb/client/file.c cifs_read_flock() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | (-1)-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $0 |
| NOSPEC | 0 | fl->fl_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-2 |
| USER_DATA | 0 | fl->fl_start | s64min-9223372036854775806[c][u] |
fs/lockd/svcsubs.c lock_to_openmode() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl | (-1),256 |
| DATA_SOURCE | 0 | fl | $0 |
| HALF_LOCKED2 | &file->f_mutex |
fs/smb/server/vfs.c check_lock_range() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| PARAM_VALUE | 0 | fl->c.flc_type | 1-255 |
| CAPPED_DATA | 0 | fl->fl_start | 1 |
| CAPPED_DATA | 0 | &fl->c.flc_list | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | &ctx->flc_lock | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct file_lock_context)->flc_lock |
fs/nfs/write.c is_whole_file_wrlock() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| DATA_SOURCE | 0 | fl | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &flctx->flc_lock | ||
| TYPE_LOCK | (struct file_lock_context)->flc_lock |
fs/nfs/write.c nfs_can_extend_write() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &flctx->flc_lock | ||
| TYPE_LOCK | (struct file_lock_context)->flc_lock |
fs/gfs2/file.c do_flock() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 6679205499366121472,8240022910925856768 |
| PARAM_VALUE | 0 | fl->c.flc_type | 0-1 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x2,0xffffffffffffffff |
| MEM_ZERO | 0 | fl | |
| RX_PATH |
fs/ocfs2/locks.c ocfs2_do_flock() -> lock_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 6679205499366121472,8240022910925856768 |
| PARAM_VALUE | 0 | fl->c.flc_type | 0-1 |
| DATA_SOURCE | 0 | fl | $3 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x2,0xffffffffffffffff |
| MEM_ZERO | 0 | fl | |
| RX_PATH |