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:
committed by
Christoph Hellwig
parent
6d6b77f163
commit
bfe8684869
@@ -363,7 +363,7 @@ repeat:
|
||||
break;
|
||||
case SIG('P', 'X'):
|
||||
inode->i_mode = isonum_733(rr->u.PX.mode);
|
||||
inode->i_nlink = isonum_733(rr->u.PX.n_links);
|
||||
set_nlink(inode, isonum_733(rr->u.PX.n_links));
|
||||
inode->i_uid = isonum_733(rr->u.PX.uid);
|
||||
inode->i_gid = isonum_733(rr->u.PX.gid);
|
||||
break;
|
||||
@@ -496,7 +496,7 @@ repeat:
|
||||
goto out;
|
||||
}
|
||||
inode->i_mode = reloc->i_mode;
|
||||
inode->i_nlink = reloc->i_nlink;
|
||||
set_nlink(inode, reloc->i_nlink);
|
||||
inode->i_uid = reloc->i_uid;
|
||||
inode->i_gid = reloc->i_gid;
|
||||
inode->i_rdev = reloc->i_rdev;
|
||||
|
Reference in New Issue
Block a user