Skip to content

Commit 2ab99e5

Browse files
committed
Merge branch 'akpm' (patches from Andrew)
Merge misc fixes from Andrew Morton: "Four patches. Subsystems affected by this patch series: mm/swap, kconfig, ocfs2, and selftests" * emailed patches from Andrew Morton <akpm@linux-foundation.org>: selftests: vm: fix clang build error multiple output files ocfs2: fix crash when initialize filecheck kobj fails configs/debug: restore DEBUG_INFO=y for overriding mm: swap: get rid of livelock in swapin readahead
2 parents a46310b + 1c4debc commit 2ab99e5

4 files changed

Lines changed: 15 additions & 16 deletions

File tree

fs/ocfs2/super.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,17 +1105,6 @@ static int ocfs2_fill_super(struct super_block *sb, void *data, int silent)
11051105
goto read_super_error;
11061106
}
11071107

1108-
root = d_make_root(inode);
1109-
if (!root) {
1110-
status = -ENOMEM;
1111-
mlog_errno(status);
1112-
goto read_super_error;
1113-
}
1114-
1115-
sb->s_root = root;
1116-
1117-
ocfs2_complete_mount_recovery(osb);
1118-
11191108
osb->osb_dev_kset = kset_create_and_add(sb->s_id, NULL,
11201109
&ocfs2_kset->kobj);
11211110
if (!osb->osb_dev_kset) {
@@ -1133,6 +1122,17 @@ static int ocfs2_fill_super(struct super_block *sb, void *data, int silent)
11331122
goto read_super_error;
11341123
}
11351124

1125+
root = d_make_root(inode);
1126+
if (!root) {
1127+
status = -ENOMEM;
1128+
mlog_errno(status);
1129+
goto read_super_error;
1130+
}
1131+
1132+
sb->s_root = root;
1133+
1134+
ocfs2_complete_mount_recovery(osb);
1135+
11361136
if (ocfs2_mount_local(osb))
11371137
snprintf(nodestr, sizeof(nodestr), "local");
11381138
else

kernel/configs/debug.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ CONFIG_SYMBOLIC_ERRNAME=y
1616
#
1717
# Compile-time checks and compiler options
1818
#
19+
CONFIG_DEBUG_INFO=y
1920
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
2021
CONFIG_DEBUG_SECTION_MISMATCH=y
2122
CONFIG_FRAME_WARN=2048

mm/swap_state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ struct page *__read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask,
478478
* __read_swap_cache_async(), which has set SWAP_HAS_CACHE
479479
* in swap_map, but not yet added its page to swap cache.
480480
*/
481-
cond_resched();
481+
schedule_timeout_uninterruptible(1);
482482
}
483483

484484
/*

tools/testing/selftests/vm/Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# SPDX-License-Identifier: GPL-2.0
22
# Makefile for vm selftests
33

4+
LOCAL_HDRS += $(selfdir)/vm/local_config.h $(top_srcdir)/mm/gup_test.h
5+
46
include local_config.mk
57

68
uname_M := $(shell uname -m 2>/dev/null || echo not)
@@ -140,10 +142,6 @@ endif
140142

141143
$(OUTPUT)/mlock-random-test $(OUTPUT)/memfd_secret: LDLIBS += -lcap
142144

143-
$(OUTPUT)/gup_test: ../../../../mm/gup_test.h
144-
145-
$(OUTPUT)/hmm-tests: local_config.h
146-
147145
# HMM_EXTRA_LIBS may get set in local_config.mk, or it may be left empty.
148146
$(OUTPUT)/hmm-tests: LDLIBS += $(HMM_EXTRA_LIBS)
149147

0 commit comments

Comments
 (0)