filesystems: add set_nlink()
Replace remaining direct i_nlink updates with a new set_nlink() updater function. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Tested-by: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
6d6b77f163
commit
bfe8684869
81 changed files with 163 additions and 148 deletions
|
@ -219,7 +219,7 @@ struct inode *sysv_iget(struct super_block *sb, unsigned int ino)
|
|||
inode->i_mode = fs16_to_cpu(sbi, raw_inode->i_mode);
|
||||
inode->i_uid = (uid_t)fs16_to_cpu(sbi, raw_inode->i_uid);
|
||||
inode->i_gid = (gid_t)fs16_to_cpu(sbi, raw_inode->i_gid);
|
||||
inode->i_nlink = fs16_to_cpu(sbi, raw_inode->i_nlink);
|
||||
set_nlink(inode, fs16_to_cpu(sbi, raw_inode->i_nlink));
|
||||
inode->i_size = fs32_to_cpu(sbi, raw_inode->i_size);
|
||||
inode->i_atime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_atime);
|
||||
inode->i_mtime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_mtime);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue