Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:simple_setattr - setattr for simple filesystem*@dentry: dentry*@iattr: iattr structure* Returns 0 on success, -error on failure

Proto:int simple_setattr(struct dentry *dentry, struct iattr *iattr)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
struct iattr *iattr
425  inode = d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.
428  error = setattr_prepare - check if attribute changes to a dentry are allowed*@dentry: dentry to check*@attr: attributes to change* Check if we are allowed to change the attributes contained in @attr* in the given dentry
429  If error Then Return error
432  If ia_valid & ATTR_SIZE Then runcate_setsize - update inode and pagecache for a new file size*@inode: inode*@newsize: new file size* truncate_setsize updates i_size and performs pagecache truncation (if* necessary) to @newsize. It will be typically be called from the filesystem's
434  setattr_copy - copy simple metadata updates into the generic inode*@inode: the inode to be updated*@attr: the new attributes* setattr_copy must be called with i_mutex held.* setattr_copy updates the inode's metadata with that specified* in attr
435  mark_inode_dirty(inode)
436  Return 0
Caller
NameDescribe
notify_changey_change - modify attributes of a filesytem object*@dentry: object affected*@attr: new attributes*@delegated_inode: returns inode, if the inode is delegated* The caller must hold the i_mutex on the affected object