Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\read_write.c Create Date:2022-07-28 20:01:30
Last Modify:2020-03-18 10:18:51 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Check whether we are allowed to dedupe the destination file

Proto:static bool allow_file_dedupe(struct file *file)

Type:bool

Parameter:

TypeParameterName
struct file *file
2087  If Check operation authority Then Return true
2089  If f_mode & le is open for writing Then Return true
2091  If uid_eq(current_fsuid(), i_uid) Then Return true
2093  If Not inode_permission(file_inode(file), MAY_WRITE) Then Return true
2095  Return false
Caller
NameDescribe
vfs_dedupe_file_range_one