filesystems: add missing nlink wrappers
Replace direct i_nlink updates with the respective updater function (inc_nlink, drop_nlink, clear_nlink, inode_dec_link_count). Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:
committed by
Christoph Hellwig
parent
dd2a981f46
commit
6d6b77f163
@ -39,7 +39,7 @@ static struct inode *proc_sys_make_inode(struct super_block *sb,
|
||||
inode->i_fop = &proc_sys_file_operations;
|
||||
} else {
|
||||
inode->i_mode |= S_IFDIR;
|
||||
inode->i_nlink = 0;
|
||||
clear_nlink(inode);
|
||||
inode->i_op = &proc_sys_dir_operations;
|
||||
inode->i_fop = &proc_sys_dir_file_operations;
|
||||
}
|
||||
|
Reference in New Issue
Block a user