mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Commit8d391972ae
("gfs2: Remove __gfs2_writepage()") changed the log flush code in gfs2_ail1_start_one() to call aops->writepages() instead of aops->writepage(). For jdata inodes, this means that we will now try to reserve log space and start a transaction before we can determine that the pages in question have already been journaled. When this happens in the context of gfs2_logd(), it can now appear that not enough log space is available for freeing up log space, and we will lock up. Fix that by issuing journal writes directly instead of going through aops->writepages() in the log flush code. Fixes:8d391972ae
("gfs2: Remove __gfs2_writepage()") Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
14 lines
333 B
C
14 lines
333 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2018 Red Hat, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __AOPS_DOT_H__
|
|
#define __AOPS_DOT_H__
|
|
|
|
#include "incore.h"
|
|
|
|
void adjust_fs_space(struct inode *inode);
|
|
int gfs2_jdata_writeback(struct address_space *mapping, struct writeback_control *wbc);
|
|
|
|
#endif /* __AOPS_DOT_H__ */
|