Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:make_empty_dir_inode

Proto:void make_empty_dir_inode(struct inode *inode)

Type:void

Parameter:

TypeParameterName
struct inode *inode
1275  set_nlink - directly set an inode's link count*@inode: inode*@nlink: new nlink (should be non-zero)* This is a low-level filesystem helper to replace any* direct filesystem manipulation of i_nlink.
1276  i_mode = S_IFDIR | S_IRUGO | S_IXUGO
1277  i_uid = GLOBAL_ROOT_UID
1278  i_gid = GLOBAL_ROOT_GID
1279  i_rdev = 0
1280  i_size = 0
1281  i_blkbits = PAGE_SHIFT determines the page size
1282  i_blocks = 0
1284  i_op = empty_dir_inode_operations
1285  i_opflags &= ~IOP_XATTR
1286  rmer ->i_op->default_file_ops = empty_dir_operations