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
@@ -541,7 +541,7 @@ static int read_name(struct inode *ino, char *name)
|
||||
|
||||
ino->i_ino = st.ino;
|
||||
ino->i_mode = st.mode;
|
||||
ino->i_nlink = st.nlink;
|
||||
set_nlink(ino, st.nlink);
|
||||
ino->i_uid = st.uid;
|
||||
ino->i_gid = st.gid;
|
||||
ino->i_atime = st.atime;
|
||||
|
Reference in New Issue
Block a user