mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
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
|
@ -104,7 +104,7 @@ void coda_vattr_to_iattr(struct inode *inode, struct coda_vattr *attr)
|
|||
if (attr->va_gid != -1)
|
||||
inode->i_gid = (gid_t) attr->va_gid;
|
||||
if (attr->va_nlink != -1)
|
||||
inode->i_nlink = attr->va_nlink;
|
||||
set_nlink(inode, attr->va_nlink);
|
||||
if (attr->va_size != -1)
|
||||
inode->i_size = attr->va_size;
|
||||
if (attr->va_size != -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue