diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-04-18 01:33:34 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-05-03 00:23:30 +0300 |
commit | 51d908b3db0e588aeb2d06df37e4df3fb1754bb5 (patch) | |
tree | 5852d9e6b3cd4b534ba73c76f1a93278646d6c29 /include/linux/swap.h | |
parent | 798cb7f9aec35460c383eab57b9fa474d999a2eb (diff) | |
download | linux-51d908b3db0e588aeb2d06df37e4df3fb1754bb5.tar.xz |
swapon(2): open swap with O_EXCL
... eliminating the need to reopen block devices so they could be
exclusively held.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index a5b640cca459..7e61a4aef2fc 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -298,7 +298,6 @@ struct swap_info_struct { unsigned int __percpu *cluster_next_cpu; /*percpu index for next allocation */ struct percpu_cluster __percpu *percpu_cluster; /* per cpu's swap location */ struct rb_root swap_extent_root;/* root of the swap extent rbtree */ - struct file *bdev_file; /* open handle of the bdev */ struct block_device *bdev; /* swap device or bdev of swap file */ struct file *swap_file; /* seldom referenced */ struct completion comp; /* seldom referenced */ |