mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] r/o bind mount prepwork: inc_nlink() helper
This is mostly included for parity with dec_nlink(), where we will have some more hooks. This one should stay pretty darn straightforward for now. Signed-off-by: Dave Hansen <[email protected]> Acked-by: Christoph Hellwig <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9a53c3a783
commit
d8c76e6f45
37 changed files with 80 additions and 75 deletions
|
|
@ -1616,7 +1616,7 @@ static int ext3_delete_entry (handle_t *handle,
|
|||
*/
|
||||
static inline void ext3_inc_count(handle_t *handle, struct inode *inode)
|
||||
{
|
||||
inode->i_nlink++;
|
||||
inc_nlink(inode);
|
||||
}
|
||||
|
||||
static inline void ext3_dec_count(handle_t *handle, struct inode *inode)
|
||||
|
|
@ -1775,7 +1775,7 @@ retry:
|
|||
iput (inode);
|
||||
goto out_stop;
|
||||
}
|
||||
dir->i_nlink++;
|
||||
inc_nlink(dir);
|
||||
ext3_update_dx_flag(dir);
|
||||
ext3_mark_inode_dirty(handle, dir);
|
||||
d_instantiate(dentry, inode);
|
||||
|
|
@ -2341,7 +2341,7 @@ static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry,
|
|||
if (new_inode) {
|
||||
drop_nlink(new_inode);
|
||||
} else {
|
||||
new_dir->i_nlink++;
|
||||
inc_nlink(new_dir);
|
||||
ext3_update_dx_flag(new_dir);
|
||||
ext3_mark_inode_dirty(handle, new_dir);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue