drop_nlink.h

来自「ocfs1.4.1 oracle分布式文件系统」· C头文件 代码 · 共 23 行

H
23
字号
#ifndef KAPI_DROP_NLINK_H#define KAPI_DROP_NLINK_H#include <linux/fs.h>/* * drop_nlink - directly drop an inode's link count * @inode: inode * * This is a low-level filesystem helper to replace any * direct filesystem manipulation of i_nlink.  In cases * where we are attempting to track writes to the * filesystem, a decrement to zero means an imminent * write when the file is truncated and actually unlinked * on the filesystem. */static inline void drop_nlink(struct inode *inode){	inode->i_nlink--;}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?