From: Gao Xiang <gaoxiang25@huawei.com> To: David Howells <dhowells@redhat.com>, Alexander Viro <viro@zeniv.linux.org.uk> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, LKML <linux-kernel@vger.kernel.org>, <devel@driverdev.osuosl.org>, <linux-erofs@lists.ozlabs.org>, Chao Yu <yuchao0@huawei.com>, Miao Xie <miaoxie@huawei.com>, <weidu.du@huawei.com>, Gao Xiang <gaoxiang25@huawei.com> Subject: [PATCH 2/2 dhowells/mount-api] staging: erofs: update .mount and .remount_sb Date: Thu, 6 Sep 2018 17:01:48 +0800 [thread overview] Message-ID: <1536224508-66168-2-git-send-email-gaoxiang25@huawei.com> (raw) In-Reply-To: <1536224508-66168-1-git-send-email-gaoxiang25@huawei.com> This patch updates .mount and .remount_sb after commit ("vfs: Require specification of size of mount data for internal mounts") in reference to drivers/usb/gadget/function/f_fs.c. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Gao Xiang <gaoxiang25@huawei.com> --- drivers/staging/erofs/super.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging/erofs/super.c b/drivers/staging/erofs/super.c index 2df9768..98614f1 100644 --- a/drivers/staging/erofs/super.c +++ b/drivers/staging/erofs/super.c @@ -480,7 +480,7 @@ struct erofs_mount_private { /* support mount_bdev() with options */ static int erofs_fill_super(struct super_block *sb, - void *_priv, int silent) + void *_priv, size_t data_size, int silent) { struct erofs_mount_private *priv = _priv; @@ -488,9 +488,9 @@ static int erofs_fill_super(struct super_block *sb, priv->options, silent); } -static struct dentry *erofs_mount( - struct file_system_type *fs_type, int flags, - const char *dev_name, void *data) +static struct dentry *erofs_mount(struct file_system_type *fs_type, + int flags, const char *dev_name, + void *data, size_t data_size) { struct erofs_mount_private priv = { .dev_name = dev_name, @@ -498,7 +498,7 @@ static struct dentry *erofs_mount( }; return mount_bdev(fs_type, flags, dev_name, - &priv, erofs_fill_super); + &priv, sizeof(priv), erofs_fill_super); } static void erofs_kill_sb(struct super_block *sb) @@ -623,7 +623,8 @@ static int erofs_show_options(struct seq_file *seq, struct dentry *root) return 0; } -static int erofs_remount(struct super_block *sb, int *flags, char *data) +static int erofs_remount(struct super_block *sb, int *flags, + char *data, size_t data_size) { BUG_ON(!sb_rdonly(sb)); -- 1.9.1
WARNING: multiple messages have this Message-ID (diff)
From: gaoxiang25@huawei.com (Gao Xiang) Subject: [PATCH 2/2 dhowells/mount-api] staging: erofs: update .mount and .remount_sb Date: Thu, 6 Sep 2018 17:01:48 +0800 [thread overview] Message-ID: <1536224508-66168-2-git-send-email-gaoxiang25@huawei.com> (raw) In-Reply-To: <1536224508-66168-1-git-send-email-gaoxiang25@huawei.com> This patch updates .mount and .remount_sb after commit ("vfs: Require specification of size of mount data for internal mounts") in reference to drivers/usb/gadget/function/f_fs.c. Reported-by: Stephen Rothwell <sfr at canb.auug.org.au> Signed-off-by: Gao Xiang <gaoxiang25 at huawei.com> --- drivers/staging/erofs/super.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging/erofs/super.c b/drivers/staging/erofs/super.c index 2df9768..98614f1 100644 --- a/drivers/staging/erofs/super.c +++ b/drivers/staging/erofs/super.c @@ -480,7 +480,7 @@ struct erofs_mount_private { /* support mount_bdev() with options */ static int erofs_fill_super(struct super_block *sb, - void *_priv, int silent) + void *_priv, size_t data_size, int silent) { struct erofs_mount_private *priv = _priv; @@ -488,9 +488,9 @@ static int erofs_fill_super(struct super_block *sb, priv->options, silent); } -static struct dentry *erofs_mount( - struct file_system_type *fs_type, int flags, - const char *dev_name, void *data) +static struct dentry *erofs_mount(struct file_system_type *fs_type, + int flags, const char *dev_name, + void *data, size_t data_size) { struct erofs_mount_private priv = { .dev_name = dev_name, @@ -498,7 +498,7 @@ static struct dentry *erofs_mount( }; return mount_bdev(fs_type, flags, dev_name, - &priv, erofs_fill_super); + &priv, sizeof(priv), erofs_fill_super); } static void erofs_kill_sb(struct super_block *sb) @@ -623,7 +623,8 @@ static int erofs_show_options(struct seq_file *seq, struct dentry *root) return 0; } -static int erofs_remount(struct super_block *sb, int *flags, char *data) +static int erofs_remount(struct super_block *sb, int *flags, + char *data, size_t data_size) { BUG_ON(!sb_rdonly(sb)); -- 1.9.1
next prev parent reply other threads:[~2018-09-06 9:02 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-09-06 9:01 [PATCH 1/2 dhowells/mount-api] staging: erofs: rename superblock flags (MS_xyz -> SB_xyz) Gao Xiang 2018-09-06 9:01 ` Gao Xiang 2018-09-06 9:01 ` Gao Xiang [this message] 2018-09-06 9:01 ` [PATCH 2/2 dhowells/mount-api] staging: erofs: update .mount and .remount_sb Gao Xiang 2018-09-06 9:39 ` Chao Yu 2018-09-06 9:39 ` Chao Yu 2018-09-06 10:08 ` [PATCH 1/2 dhowells/mount-api] staging: erofs: rename superblock flags (MS_xyz -> SB_xyz) David Howells 2018-09-06 10:08 ` David Howells 2018-09-06 10:37 ` Gao Xiang 2018-09-06 10:37 ` Gao Xiang 2018-09-10 8:13 ` Greg Kroah-Hartman 2018-09-10 8:13 ` Greg Kroah-Hartman 2018-09-10 8:21 ` Gao Xiang 2018-09-10 8:21 ` Gao Xiang 2018-09-06 10:09 ` [PATCH 2/2 dhowells/mount-api] staging: erofs: update .mount and .remount_sb David Howells 2018-09-06 10:09 ` David Howells
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1536224508-66168-2-git-send-email-gaoxiang25@huawei.com \ --to=gaoxiang25@huawei.com \ --cc=devel@driverdev.osuosl.org \ --cc=dhowells@redhat.com \ --cc=gregkh@linuxfoundation.org \ --cc=linux-erofs@lists.ozlabs.org \ --cc=linux-kernel@vger.kernel.org \ --cc=miaoxie@huawei.com \ --cc=viro@zeniv.linux.org.uk \ --cc=weidu.du@huawei.com \ --cc=yuchao0@huawei.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.