/* Unlike extN we don't have any flags we don't want to inherit currently.  */
void btrfs_inherit_iflags(struct inode *inode, struct inode *dir)
/* Unlike extN we don't have any flags we don't want to inherit currently.  */
void btrfs_inherit_iflags(struct inode *inode, struct inode *dir)
{
	unsigned int flags;
	if (!dir)
		return;
	flags = BTRFS_I(dir)->flags;
	if (S_ISREG(inode->i_mode))
		flags &= ~BTRFS_INODE_DIRSYNC;
	else if (!S_ISDIR(inode->i_mode))
		flags &= (BTRFS_INODE_NODUMP | BTRFS_INODE_NOATIME);
	BTRFS_I(inode)->flags = flags;
	btrfs_update_iflags(inode);
}