--- zzzz-none-000/linux-4.1.52/fs/ubifs/ubifs.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/fs/ubifs/ubifs.h 2022-03-02 11:37:13.000000000 +0000 @@ -180,6 +180,9 @@ WB_MUTEX_1 = 0, WB_MUTEX_2 = 1, WB_MUTEX_3 = 2, +#if defined(CONFIG_BCM_KF_UBIFS_OVERLAY_BACKPORTS) + WB_MUTEX_4 = 3, +#endif }; /* @@ -1544,10 +1547,22 @@ const union ubifs_key *key, const void *buf, int len); int ubifs_jnl_write_inode(struct ubifs_info *c, const struct inode *inode); int ubifs_jnl_delete_inode(struct ubifs_info *c, const struct inode *inode); +#if defined(CONFIG_BCM_KF_UBIFS_OVERLAY_BACKPORTS) +int ubifs_jnl_xrename(struct ubifs_info *c, const struct inode *fst_dir, + const struct dentry *fst_dentry, + const struct inode *snd_dir, + const struct dentry *snd_dentry, int sync); +int ubifs_jnl_rename(struct ubifs_info *c, const struct inode *old_dir, + const struct dentry *old_dentry, + const struct inode *new_dir, + const struct dentry *new_dentry, + const struct inode *whiteout, int sync); +#else int ubifs_jnl_rename(struct ubifs_info *c, const struct inode *old_dir, const struct dentry *old_dentry, const struct inode *new_dir, const struct dentry *new_dentry, int sync); +#endif int ubifs_jnl_truncate(struct ubifs_info *c, const struct inode *inode, loff_t old_size, loff_t new_size); int ubifs_jnl_delete_xattr(struct ubifs_info *c, const struct inode *host,