diff options
| -rw-r--r-- | fs/9p/v9fs.h | 2 | ||||
| -rw-r--r-- | fs/9p/vfs_super.c | 3 | ||||
| -rw-r--r-- | include/linux/magic.h | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/fs/9p/v9fs.h b/fs/9p/v9fs.h index 8bb7792afe2e..cb6396855e2d 100644 --- a/fs/9p/v9fs.h +++ b/fs/9p/v9fs.h | |||
| @@ -117,8 +117,6 @@ void v9fs_session_close(struct v9fs_session_info *v9ses); | |||
| 117 | void v9fs_session_cancel(struct v9fs_session_info *v9ses); | 117 | void v9fs_session_cancel(struct v9fs_session_info *v9ses); |
| 118 | void v9fs_session_begin_cancel(struct v9fs_session_info *v9ses); | 118 | void v9fs_session_begin_cancel(struct v9fs_session_info *v9ses); |
| 119 | 119 | ||
| 120 | #define V9FS_MAGIC 0x01021997 | ||
| 121 | |||
| 122 | /* other default globals */ | 120 | /* other default globals */ |
| 123 | #define V9FS_PORT 564 | 121 | #define V9FS_PORT 564 |
| 124 | #define V9FS_DEFUSER "nobody" | 122 | #define V9FS_DEFUSER "nobody" |
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index 174643f4f901..48d4215c60a8 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c | |||
| @@ -39,6 +39,7 @@ | |||
| 39 | #include <linux/sched.h> | 39 | #include <linux/sched.h> |
| 40 | #include <linux/slab.h> | 40 | #include <linux/slab.h> |
| 41 | #include <linux/statfs.h> | 41 | #include <linux/statfs.h> |
| 42 | #include <linux/magic.h> | ||
| 42 | #include <net/9p/9p.h> | 43 | #include <net/9p/9p.h> |
| 43 | #include <net/9p/client.h> | 44 | #include <net/9p/client.h> |
| 44 | 45 | ||
| @@ -256,7 +257,7 @@ static int v9fs_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
| 256 | if (v9fs_proto_dotl(v9ses)) { | 257 | if (v9fs_proto_dotl(v9ses)) { |
| 257 | res = p9_client_statfs(fid, &rs); | 258 | res = p9_client_statfs(fid, &rs); |
| 258 | if (res == 0) { | 259 | if (res == 0) { |
| 259 | buf->f_type = rs.type; | 260 | buf->f_type = V9FS_MAGIC; |
| 260 | buf->f_bsize = rs.bsize; | 261 | buf->f_bsize = rs.bsize; |
| 261 | buf->f_blocks = rs.blocks; | 262 | buf->f_blocks = rs.blocks; |
| 262 | buf->f_bfree = rs.bfree; | 263 | buf->f_bfree = rs.bfree; |
diff --git a/include/linux/magic.h b/include/linux/magic.h index eb9800f05782..ff690d05f129 100644 --- a/include/linux/magic.h +++ b/include/linux/magic.h | |||
| @@ -57,5 +57,6 @@ | |||
| 57 | 57 | ||
| 58 | #define DEVPTS_SUPER_MAGIC 0x1cd1 | 58 | #define DEVPTS_SUPER_MAGIC 0x1cd1 |
| 59 | #define SOCKFS_MAGIC 0x534F434B | 59 | #define SOCKFS_MAGIC 0x534F434B |
| 60 | #define V9FS_MAGIC 0x01021997 | ||
| 60 | 61 | ||
| 61 | #endif /* __LINUX_MAGIC_H__ */ | 62 | #endif /* __LINUX_MAGIC_H__ */ |
