Skip to content

Commit b6e3224

Browse files
committed
Revert "task_struct: make journal_info conditional"
This reverts commit e4c570c, as requested by Alexey: "I think I gave a good enough arguments to not merge it. To iterate: * patch makes impossible to start using ext3 on EXT3_FS=n kernels without reboot. * this is done only for one pointer on task_struct" None of config options which define task_struct are tristate directly or effectively." Requested-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a2770d8 commit b6e3224

10 files changed

Lines changed: 1 addition & 20 deletions

File tree

‎fs/Kconfig‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ menu "File systems"
66

77
if BLOCK
88

9-
config FS_JOURNAL_INFO
10-
bool
11-
default n
12-
139
source "fs/ext2/Kconfig"
1410
source "fs/ext3/Kconfig"
1511
source "fs/ext4/Kconfig"

‎fs/btrfs/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ config BTRFS_FS
44
select LIBCRC32C
55
select ZLIB_INFLATE
66
select ZLIB_DEFLATE
7-
select FS_JOURNAL_INFO
87
help
98
Btrfs is a new filesystem with extents, writable snapshotting,
109
support for multiple devices and many more features.

‎fs/ext4/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ config EXT4_FS
22
tristate "The Extended 4 (ext4) filesystem"
33
select JBD2
44
select CRC16
5-
select FS_JOURNAL_INFO
65
help
76
This is the next generation of the ext3 filesystem.
87

‎fs/gfs2/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ config GFS2_FS
1010
select SLOW_WORK
1111
select QUOTA
1212
select QUOTACTL
13-
select FS_JOURNAL_INFO
1413
help
1514
A cluster filesystem.
1615

‎fs/jbd/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
config JBD
22
tristate
3-
select FS_JOURNAL_INFO
43
help
54
This is a generic journalling layer for block devices. It is
65
currently used by the ext3 file system, but it could also be

‎fs/jbd2/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
config JBD2
22
tristate
33
select CRC32
4-
select FS_JOURNAL_INFO
54
help
65
This is a generic journaling layer for block devices that support
76
both 32-bit and 64-bit block numbers. It is currently used by

‎fs/nilfs2/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ config NILFS2_FS
22
tristate "NILFS2 file system support (EXPERIMENTAL)"
33
depends on EXPERIMENTAL
44
select CRC32
5-
select FS_JOURNAL_INFO
65
help
76
NILFS2 is a log-structured file system (LFS) supporting continuous
87
snapshotting. In addition to versioning capability of the entire

‎fs/reiserfs/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
config REISERFS_FS
22
tristate "Reiserfs support"
33
select CRC32
4-
select FS_JOURNAL_INFO
54
help
65
Stores not just filenames but the files themselves in a balanced
76
tree. Uses journalling.

‎include/linux/init_task.h‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ extern struct cred init_cred;
111111
# define INIT_PERF_EVENTS(tsk)
112112
#endif
113113

114-
#ifdef CONFIG_FS_JOURNAL_INFO
115-
#define INIT_JOURNAL_INFO .journal_info = NULL,
116-
#else
117-
#define INIT_JOURNAL_INFO
118-
#endif
119-
120114
/*
121115
* INIT_TASK is used to set up the first task table, touch at
122116
* your own risk!. Base=0, limit=0x1fffff (=2MB)
@@ -168,6 +162,7 @@ extern struct cred init_cred;
168162
.signal = {{0}}}, \
169163
.blocked = {{0}}, \
170164
.alloc_lock = __SPIN_LOCK_UNLOCKED(tsk.alloc_lock), \
165+
.journal_info = NULL, \
171166
.cpu_timers = INIT_CPU_TIMERS(tsk.cpu_timers), \
172167
.fs_excl = ATOMIC_INIT(0), \
173168
.pi_lock = __RAW_SPIN_LOCK_UNLOCKED(tsk.pi_lock), \
@@ -178,7 +173,6 @@ extern struct cred init_cred;
178173
[PIDTYPE_SID] = INIT_PID_LINK(PIDTYPE_SID), \
179174
}, \
180175
.dirties = INIT_PROP_LOCAL_SINGLE(dirties), \
181-
INIT_JOURNAL_INFO \
182176
INIT_IDS \
183177
INIT_PERF_EVENTS(tsk) \
184178
INIT_TRACE_IRQFLAGS \

‎include/linux/sched.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,10 +1446,8 @@ struct task_struct {
14461446
gfp_t lockdep_reclaim_gfp;
14471447
#endif
14481448

1449-
#ifdef CONFIG_FS_JOURNAL_INFO
14501449
/* journalling filesystem info */
14511450
void *journal_info;
1452-
#endif
14531451

14541452
/* stacked block device info */
14551453
struct bio *bio_list, **bio_tail;

0 commit comments

Comments
 (0)