mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
NFS: switch back to using kill_anon_super
NFS switch to open coding kill_anon_super in7b14a21389
("nfs: don't call bdi_unregister") to avoid the extra bdi_unregister call. At that point bdi_destroy was called in nfs_free_server and thus it required a later freeing of the anon dev_t. But since0db10944a7
("nfs: Convert to separately allocated bdi") the bdi has been free implicitly by the sb destruction, so this isn't needed anymore. By not open coding kill_anon_super, nfs now inherits the fix indc3216b141
("super: ensure valid info"), and we remove the only open coded version of kill_anon_super. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jan Kara <jack@suse.cz> Message-Id: <20230831052940.256193-1-hch@lst.de> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
ec952aa253
commit
5069ba84b5
@ -1339,15 +1339,13 @@ error_splat_super:
|
||||
void nfs_kill_super(struct super_block *s)
|
||||
{
|
||||
struct nfs_server *server = NFS_SB(s);
|
||||
dev_t dev = s->s_dev;
|
||||
|
||||
nfs_sysfs_move_sb_to_server(server);
|
||||
generic_shutdown_super(s);
|
||||
kill_anon_super(s);
|
||||
|
||||
nfs_fscache_release_super_cookie(s);
|
||||
|
||||
nfs_free_server(server);
|
||||
free_anon_bdev(dev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(nfs_kill_super);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user