@@ -94,11 +94,9 @@ functions:
9494
9595 The passed struct file_system_type describes your filesystem. When a
9696request is made to mount a filesystem onto a directory in your
97- namespace, the VFS will call the appropriate mount() method for the
98- specific filesystem. New vfsmount referring to the tree returned by
99- ->mount() will be attached to the mountpoint, so that when pathname
100- resolution reaches the mountpoint it will jump into the root of that
101- vfsmount.
97+ namespace, the VFS will call the appropriate get_tree() method for the
98+ specific filesystem. See Documentation/filesystems/mount_api.rst
99+ for more details.
102100
103101You can see all filesystems that are registered to the kernel in the
104102file /proc/filesystems.
@@ -117,8 +115,6 @@ members are defined:
117115 int fs_flags;
118116 int (*init_fs_context)(struct fs_context *);
119117 const struct fs_parameter_spec *parameters;
120- struct dentry *(*mount) (struct file_system_type *, int,
121- const char *, void *);
122118 void (*kill_sb) (struct super_block *);
123119 struct module *owner;
124120 struct file_system_type * next;
@@ -151,10 +147,6 @@ members are defined:
151147 'struct fs_parameter_spec'.
152148 More info in Documentation/filesystems/mount_api.rst.
153149
154- ``mount ``
155- the method to call when a new instance of this filesystem should
156- be mounted
157-
158150``kill_sb ``
159151 the method to call when an instance of this filesystem should be
160152 shut down
@@ -173,45 +165,6 @@ members are defined:
173165 s_lock_key, s_umount_key, s_vfs_rename_key, s_writers_key,
174166 i_lock_key, i_mutex_key, invalidate_lock_key, i_mutex_dir_key: lockdep-specific
175167
176- The mount() method has the following arguments:
177-
178- ``struct file_system_type *fs_type ``
179- describes the filesystem, partly initialized by the specific
180- filesystem code
181-
182- ``int flags ``
183- mount flags
184-
185- ``const char *dev_name ``
186- the device name we are mounting.
187-
188- ``void *data ``
189- arbitrary mount options, usually comes as an ASCII string (see
190- "Mount Options" section)
191-
192- The mount() method must return the root dentry of the tree requested by
193- caller. An active reference to its superblock must be grabbed and the
194- superblock must be locked. On failure it should return ERR_PTR(error).
195-
196- The arguments match those of mount(2) and their interpretation depends
197- on filesystem type. E.g. for block filesystems, dev_name is interpreted
198- as block device name, that device is opened and if it contains a
199- suitable filesystem image the method creates and initializes struct
200- super_block accordingly, returning its root dentry to caller.
201-
202- ->mount() may choose to return a subtree of existing filesystem - it
203- doesn't have to create a new one. The main result from the caller's
204- point of view is a reference to dentry at the root of (sub)tree to be
205- attached; creation of new superblock is a common side effect.
206-
207- The most interesting member of the superblock structure that the mount()
208- method fills in is the "s_op" field. This is a pointer to a "struct
209- super_operations" which describes the next level of the filesystem
210- implementation.
211-
212- For more information on mounting (and the new mount API), see
213- Documentation/filesystems/mount_api.rst.
214-
215168The Superblock Object
216169=====================
217170
@@ -244,7 +197,6 @@ filesystem. The following members are defined:
244197 enum freeze_wholder who);
245198 int (*unfreeze_fs) (struct super_block *);
246199 int (*statfs) (struct dentry *, struct kstatfs *);
247- int (*remount_fs) (struct super_block *, int *, char *);
248200 void (*umount_begin) (struct super_block *);
249201
250202 int (*show_options)(struct seq_file *, struct dentry *);
@@ -351,10 +303,6 @@ or bottom half).
351303``statfs ``
352304 called when the VFS needs to get filesystem statistics.
353305
354- ``remount_fs ``
355- called when the filesystem is remounted. This is called with
356- the kernel lock held
357-
358306``umount_begin ``
359307 called when the VFS is unmounting a filesystem.
360308
0 commit comments