|
@@ -415,7 +415,8 @@ struct page *init_inode_metadata(struct inode *inode, struct inode *dir,
|
|
|
* We lost i_pino from now on.
|
|
* We lost i_pino from now on.
|
|
|
*/
|
|
*/
|
|
|
if (is_inode_flag_set(inode, FI_INC_LINK)) {
|
|
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,
|
|
* If link the tmpfile to alias through linkat path,
|
|
|
* we should remove this inode from orphan list.
|
|
* we should remove this inode from orphan list.
|