diff options
author | M. Mohan Kumar <mohan@in.ibm.com> | 2010-09-27 04:47:24 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2010-10-28 10:08:47 -0400 |
commit | 368c09d2a303c39e9f37193b23e945e6754cf0a7 (patch) | |
tree | 3642173cbdfba8bcb32e85959eb69c1a6c8ebc11 /fs/9p/vfs_super.c | |
parent | 1d769cd192fc8c4097b1e2cd41fdee6ba3d1b2af (diff) |
9p: Use V9FS_MAGIC in statfs
Use V9FS_MAGIC as the file system type while filling kernel statfs
strucutre instead of using host file system magic number. Also move
the definition of V9FS_MAGIC from v9fs.h to standard magic.h file.
Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_super.c')
-rw-r--r-- | fs/9p/vfs_super.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |