diff options
author | Daeho Jeong <daehojeong@google.com> | 2020-07-21 12:21:11 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-07-21 12:58:11 -0700 |
commit | 9af846486d781a63de025a5f502c515268e48790 (patch) | |
tree | 62787872c556bba780a03fa6a724ff4b6650f21b /drivers/usb/cdns3/cdns3-ti.c | |
parent | b0f3b87fb3abc42c81d76c6c5795f26dbdb2f04b (diff) |
f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctl
Added a new ioctl to send discard commands or/and zero out
to selected data area of a regular file for security reason.
The way of handling range.len of F2FS_IOC_SEC_TRIM_FILE:
1. Added -1 value support for range.len to secure trim the whole blocks
starting from range.start regardless of i_size.
2. If the end of the range passes over the end of file, it means until
the end of file (i_size).
3. ignored the case of that range.len is zero to prevent the function
from making end_addr zero and triggering different behaviour of
the function.
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions