diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-12-08 21:32:45 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-06 23:19:54 -0500 |
commit | 34c80b1d93e6e20ca9dea0baf583a5b5510d92d4 (patch) | |
tree | 7dcbf0a4e09464247e6992c8f44fcc872867bd3a /fs/fuse | |
parent | a6322de67b58a00e3a783ad9c87c2a11b2d67b47 (diff) |
vfs: switch ->show_options() to struct dentry *
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/inode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 3d3622a1ceac..64cf8d07393e 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -497,9 +497,10 @@ static int parse_fuse_opt(char *opt, struct fuse_mount_data *d, int is_bdev) | |||
497 | return 1; | 497 | return 1; |
498 | } | 498 | } |
499 | 499 | ||
500 | static int fuse_show_options(struct seq_file *m, struct vfsmount *mnt) | 500 | static int fuse_show_options(struct seq_file *m, struct dentry *root) |
501 | { | 501 | { |
502 | struct fuse_conn *fc = get_fuse_conn_super(mnt->mnt_sb); | 502 | struct super_block *sb = root->d_sb; |
503 | struct fuse_conn *fc = get_fuse_conn_super(sb); | ||
503 | 504 | ||
504 | seq_printf(m, ",user_id=%u", fc->user_id); | 505 | seq_printf(m, ",user_id=%u", fc->user_id); |
505 | seq_printf(m, ",group_id=%u", fc->group_id); | 506 | seq_printf(m, ",group_id=%u", fc->group_id); |
@@ -509,9 +510,8 @@ static int fuse_show_options(struct seq_file *m, struct vfsmount *mnt) | |||
509 | seq_puts(m, ",allow_other"); | 510 | seq_puts(m, ",allow_other"); |
510 | if (fc->max_read != ~0) | 511 | if (fc->max_read != ~0) |
511 | seq_printf(m, ",max_read=%u", fc->max_read); | 512 | seq_printf(m, ",max_read=%u", fc->max_read); |
512 | if (mnt->mnt_sb->s_bdev && | 513 | if (sb->s_bdev && sb->s_blocksize != FUSE_DEFAULT_BLKSIZE) |
513 | mnt->mnt_sb->s_blocksize != FUSE_DEFAULT_BLKSIZE) | 514 | seq_printf(m, ",blksize=%lu", sb->s_blocksize); |
514 | seq_printf(m, ",blksize=%lu", mnt->mnt_sb->s_blocksize); | ||
515 | return 0; | 515 | return 0; |
516 | } | 516 | } |
517 | 517 | ||