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
@@ -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)
|
||||
|
Reference in New Issue
Block a user