/* Inode writeback creation completion callback. Only invoked for just created inodes, which do not have pages attached, like dirs and empty files.  */
static int pohmelfs_write_inode_complete(struct page **pages, unsigned int page_num, void *private, int err)
/* Inode writeback creation completion callback. Only invoked for just created inodes, which do not have pages attached, like dirs and empty files.  */
static int pohmelfs_write_inode_complete(struct page **pages, unsigned int page_num, void *private, int err)
{
	struct inode *inode = private;
	struct pohmelfs_inode *pi = POHMELFS_I(inode);
	if (inode) {
		if (err) {
			mark_inode_dirty(inode);
			clear_bit(NETFS_INODE_REMOTE_SYNCED, &pi->state);
		} else {
			set_bit(NETFS_INODE_REMOTE_SYNCED, &pi->state);
		}
		pohmelfs_put_inode(pi);
	}
	return err;
}