Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The nofs argument instructs pagecache_write_begin to pass AOP_FLAG_NOFS

Proto:int __page_symlink(struct inode *inode, const char *symname, int len, int nofs)

Type:int

Parameter:

TypeParameterName
struct inode *inode
const char *symname
intlen
intnofs
4766  mapping = i_mapping
4770  flags = 0
4771  If nofs Then flags |= used by filesystem to direct* helper code (eg buffer layer)* to clear GFP_FS from alloc
4774  retry :
4775  err = pagecache_write_begin(NULL, mapping, 0, len - 1, flags, & page, & fsdata)
4777  If err Then Go to fail
4780  memcpy(page_address(page), symname, len - 1)
4782  err = pagecache_write_end(NULL, mapping, 0, len - 1, len - 1, page, fsdata)
4784  If err < 0 Then Go to fail
4786  If err < len - 1 Then Go to retry
4789  mark_inode_dirty(inode)
4790  Return 0
4791  fail :
4792  Return err
Caller
NameDescribe
page_symlink