diff options
author | Yan, Zheng <zyan@redhat.com> | 2017-06-27 11:57:56 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-07-07 17:25:14 +0200 |
commit | 1d8f83604c4244d93c5a49f5107624769df6248f (patch) | |
tree | dc6760e0d0f8bf3364bd52499c435e3c404bf867 /fs/ceph/super.h | |
parent | 4b9f2042fd2a9da7e6c7b4dd49eff19dc3754e4f (diff) | |
download | linux-1d8f83604c4244d93c5a49f5107624769df6248f.tar.gz linux-1d8f83604c4244d93c5a49f5107624769df6248f.tar.bz2 linux-1d8f83604c4244d93c5a49f5107624769df6248f.zip |
ceph: new mount option that specifies fscache uniquifier
Current ceph uses FSID as primary index key of fscache data. This
allows ceph to retain cached data across remount. But this causes
problem (kernel opps, fscache does not support sharing data) when
a filesystem get mounted several times (with fscache enabled, with
different mount options).
The fix is adding a new mount option, which specifies uniquifier
for fscache.
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r-- | fs/ceph/super.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index f8a0aba0d938..f02a2225fe42 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h @@ -73,6 +73,7 @@ struct ceph_mount_options { char *snapdir_name; /* default ".snap" */ char *mds_namespace; /* default NULL */ char *server_path; /* default "/" */ + char *fscache_uniq; /* default NULL */ }; struct ceph_fs_client { |