mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
filesystems: add missing nlink wrappers
Replace direct i_nlink updates with the respective updater function (inc_nlink, drop_nlink, clear_nlink, inode_dec_link_count). Signed-off-by: Miklos Szeredi <[email protected]>
This commit is contained in:
parent
dd2a981f46
commit
6d6b77f163
32 changed files with 55 additions and 58 deletions
|
|
@ -198,7 +198,7 @@ static int hfs_create(struct inode *dir, struct dentry *dentry, int mode,
|
|||
|
||||
res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode);
|
||||
if (res) {
|
||||
inode->i_nlink = 0;
|
||||
clear_nlink(inode);
|
||||
hfs_delete_inode(inode);
|
||||
iput(inode);
|
||||
return res;
|
||||
|
|
@ -227,7 +227,7 @@ static int hfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
|
|||
|
||||
res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode);
|
||||
if (res) {
|
||||
inode->i_nlink = 0;
|
||||
clear_nlink(inode);
|
||||
hfs_delete_inode(inode);
|
||||
iput(inode);
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Reference in a new issue