aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs/volume.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2018-11-01 19:07:27 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2019-02-28 03:29:38 -0500
commit13fcc6837049f1bd76d57e9abc217a91fdbad764 (patch)
tree9877eae99e3ef278e3216db277c2118d5b6a0239 /fs/afs/volume.c
parent06a2ae56b5b88fa57cd56e0b99bd874135efdf58 (diff)
afs: Add fs_context support
Add fs_context support to the AFS filesystem, converting the parameter parsing to store options there. This will form the basis for namespace propagation over mountpoints within the AFS model, thereby allowing AFS to be used in containers more easily. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/afs/volume.c')
-rw-r--r--fs/afs/volume.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/afs/volume.c b/fs/afs/volume.c
index 00975ed3640f..f6eba2def0a1 100644
--- a/fs/afs/volume.c
+++ b/fs/afs/volume.c
@@ -21,7 +21,7 @@ static const char *const afs_voltypes[] = { "R/W", "R/O", "BAK" };
21/* 21/*
22 * Allocate a volume record and load it up from a vldb record. 22 * Allocate a volume record and load it up from a vldb record.
23 */ 23 */
24static struct afs_volume *afs_alloc_volume(struct afs_mount_params *params, 24static struct afs_volume *afs_alloc_volume(struct afs_fs_context *params,
25 struct afs_vldb_entry *vldb, 25 struct afs_vldb_entry *vldb,
26 unsigned long type_mask) 26 unsigned long type_mask)
27{ 27{
@@ -113,7 +113,7 @@ static struct afs_vldb_entry *afs_vl_lookup_vldb(struct afs_cell *cell,
113 * - Rule 3: If parent volume is R/W, then only mount R/W volume unless 113 * - Rule 3: If parent volume is R/W, then only mount R/W volume unless
114 * explicitly told otherwise 114 * explicitly told otherwise
115 */ 115 */
116struct afs_volume *afs_create_volume(struct afs_mount_params *params) 116struct afs_volume *afs_create_volume(struct afs_fs_context *params)
117{ 117{
118 struct afs_vldb_entry *vldb; 118 struct afs_vldb_entry *vldb;
119 struct afs_volume *volume; 119 struct afs_volume *volume;