Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- fs/namespace.c
- fs/nfsd/vfs.c
- fs/open.c, line 518
- fs/overlayfs/params.c, line 330
- fs/overlayfs/super.c, line 508
- fs/proc_namespace.c, line 123
Smatch caller information:
fs/overlayfs/params.c ovl_mount_dir_check() -> __mnt_is_readonly()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex |
fs/overlayfs/super.c ovl_get_upper() -> __mnt_is_readonly()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex | ||
| HALF_LOCKED2 | &sb->s_umount |
fs/namespace.c change_mount_ro_state() -> __mnt_is_readonly()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mnt | 4096-ptr_max |
| LOCK2 | &sb->s_umount | ||
| LOCK2 | global &mount_lock.lock | ||
| TYPE_LOCK | (struct super_block)->s_umount |
fs/namespace.c mnt_get_write_access_file() -> __mnt_is_readonly()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/namespace.c mnt_is_readonly() -> __mnt_is_readonly()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mnt | 4096-ptr_max |
| DATA_SOURCE | 0 | mnt | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/namespace.c mnt_warn_timestamp_expiry() -> __mnt_is_readonly()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mnt | 4096-ptr_max |
| BUF_SIZE | 0 | mnt | (-1),32 |
| BUF_SIZE | 0 | mnt | (-1),32 |
| DATA_SOURCE | 0 | mnt | $1 |
fs/nfsd/vfs.c nfsd_permission() -> __mnt_is_readonly()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &inode->i_rwsem |
fs/proc_namespace.c show_vfsmnt() -> __mnt_is_readonly()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mnt | 4096-ptr_max |
| DATA_SOURCE | 0 | mnt | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
fs/open.c do_faccessat() -> __mnt_is_readonly()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mnt | 4096-ptr_max |