]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: only initialize mmp_bdevname once
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Jul 2022 05:53:16 +0000 (07:53 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Jul 2022 16:27:56 +0000 (10:27 -0600)
commitc6eec4d60f8c3923d591e9321de05de23f55652c
tree639de65ef867d74e6baa8a3b4531257346b478bf
parent9448d4a3bdd72c608ecb7d17c0b15936b5e0a642
ext4: only initialize mmp_bdevname once

mmp_bdevname is currently both initialized nested inside the kthread_run
call in ext4_multi_mount_protect and in the kmmpd thread started by it.

Lift the initiaization out of the kthread_run call in
ext4_multi_mount_protect, move the BUILD_BUG_ON next to it and remove
the duplicate assignment inside of kmmpd.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20220713055317.1888500-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/ext4/mmp.c