Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namespace.c Create Date:2022-07-28 20:09:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mnt_want_write_file - get write access to a file's mount*@file: the file who's mount on which to take a write* This is like mnt_want_write, but it takes a file and can* do some optimisations if the file is open for write already

Proto:int mnt_want_write_file(struct file *file)

Type:int

Parameter:

TypeParameterName
struct file *file
412  sb_start_write - get write access to a superblock*@sb: the super we write to* When a process wants to write data or metadata to a file system (i.e. dirty* a page or an inode), it should embed the operation in a sb_start_write() -
413  ret = __mnt_want_write_file - get write access to a file's mount*@file: the file who's mount on which to take a write* This is like __mnt_want_write, but it takes a file and can* do some optimisations if the file is open for write already
414  If ret Then sb_end_write - drop write access to a superblock*@sb: the super we wrote to* Decrement number of writers to the filesystem. Wake up possible waiters* wanting to freeze the filesystem.
416  Return ret
Caller
NameDescribe
vfs_dedupe_file_range_one
SYSCALL_DEFINE5
SYSCALL_DEFINE2
fscrypt_ioctl_set_policy
fsverity_ioctl_enablesverity_ioctl_enable() - enable verity on a file* Enable fs-verity on a file. See the "FS_IOC_ENABLE_VERITY" section of* Documentation/filesystems/fsverity.rst for the documentation.* Return: 0 on success, -errno on failure