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
395  If Not (f_mode & Write access to underlying fs ) Then Return __mnt_want_write - get write access to a mount without freeze protection*@m: the mount on which to take a write* This tells the low-level filesystem that a write is about to be performed to* it, and makes sure that writes are allowed (mnt it read-write)
397  Else Return mnt_clone_write - get write access to a mount*@mnt: the mount on which to take a write* This is effectively like mnt_want_write, except* it must only be used to take an extra write reference* on a mountpoint that we already know has a write reference
Caller
NameDescribe
mnt_want_write_filemnt_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