mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
f2fs: do not set LOST_PINO for newly created dir
Since directories will be written back with checkpoint and fsync a directory will always write CP, there is no need to set LOST_PINO after creating a directory. Signed-off-by: Sheng Yong <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
This commit is contained in:
parent
0771fcc71c
commit
d58dfb7505
1 changed files with 2 additions and 1 deletions
|
|
@ -415,7 +415,8 @@ struct page *init_inode_metadata(struct inode *inode, struct inode *dir,
|
|||
* We lost i_pino from now on.
|
||||
*/
|
||||
if (is_inode_flag_set(inode, FI_INC_LINK)) {
|
||||
file_lost_pino(inode);
|
||||
if (!S_ISDIR(inode->i_mode))
|
||||
file_lost_pino(inode);
|
||||
/*
|
||||
* If link the tmpfile to alias through linkat path,
|
||||
* we should remove this inode from orphan list.
|
||||
|
|
|
|||
Loading…
Reference in a new issue