libceph, rbd, ceph: convert to use the new mount API
Convert the ceph filesystem to the new internal mount API as the old one will be obsoleted and removed. This allows greater flexibility in communication of mount parameters between userspace, the VFS and the filesystem. See Documentation/filesystems/mount_api.txt for more information. [ Numerous string handling, leak and regression fixes; rbd conversion was particularly broken and had to be redone almost from scratch. ] Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:

committed by
Ilya Dryomov

parent
196e2d6d02
commit
82995cc6c5
@@ -16,7 +16,7 @@ extern struct fscache_netfs ceph_cache_netfs;
|
||||
int ceph_fscache_register(void);
|
||||
void ceph_fscache_unregister(void);
|
||||
|
||||
int ceph_fscache_register_fs(struct ceph_fs_client* fsc);
|
||||
int ceph_fscache_register_fs(struct ceph_fs_client* fsc, struct fs_context *fc);
|
||||
void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc);
|
||||
|
||||
void ceph_fscache_register_inode_cookie(struct inode *inode);
|
||||
@@ -88,7 +88,8 @@ static inline void ceph_fscache_unregister(void)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int ceph_fscache_register_fs(struct ceph_fs_client* fsc)
|
||||
static inline int ceph_fscache_register_fs(struct ceph_fs_client* fsc,
|
||||
struct fs_context *fc)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user