Function report |
Source Code:fs\open.c |
Create Date:2022-07-28 20:00:51 |
Last Modify:2020-03-18 10:16:03 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:vfs_truncate
Proto:long vfs_truncate(const struct path *path, loff_t length)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
const struct path * | path | |
loff_t | length |
82 | error = mnt_want_write(mnt) |
86 | error = inode_permission(inode, MAY_WRITE) |
87 | If error Then Go to mnt_drop_write_and_out |
91 | If IS_APPEND(inode) Then Go to mnt_drop_write_and_out |
95 | If error Then Go to mnt_drop_write_and_out |
102 | error = break_lease(inode, O_WRONLY) |
103 | If error Then Go to put_write_and_out |
106 | error = locks_verify_truncate(inode, NULL, length) |
107 | If Not error Then error = security_path_truncate(path) |
109 | If Not error Then error = do_truncate(dentry, length, 0, NULL) |
112 | put_write_and_out : |
114 | mnt_drop_write_and_out : |
115 | mnt_drop_write(mnt) |
116 | out : |
117 | Return error |
Name | Describe |
---|---|
do_sys_truncate |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |