From: Scott Bauer <scott.bauer@intel.com> To: linux-nvme@lists.infradead.org Cc: Rafael.Antognolli@intel.com, axboe@fb.com, keith.busch@intel.com, jonathan.derrick@intel.com, viro@zeniv.linux.org.uk, hch@infradead.org, linux-kernel@vger.kernel.org, sagi@grimberg.me, Scott Bauer <scott.bauer@intel.com> Subject: [PATCH v3 3/5] fs: Wire up SED/Opal to ioctl Date: Mon, 19 Dec 2016 12:35:47 -0700 [thread overview] Message-ID: <1482176149-2257-4-git-send-email-scott.bauer@intel.com> (raw) In-Reply-To: <1482176149-2257-1-git-send-email-scott.bauer@intel.com> Adds a new sed_context pointer to file struct, for char devs who wish to suppor SED. Adds ioctl handling code. Signed-off-by: Scott Bauer <scott.bauer@intel.com> Signed-off-by: Rafael Antognolli <Rafael.Antognolli@intel.com> --- fs/ioctl.c | 3 +++ include/linux/fs.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/fs/ioctl.c b/fs/ioctl.c index cb9b029..77def42 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c @@ -15,6 +15,7 @@ #include <linux/writeback.h> #include <linux/buffer_head.h> #include <linux/falloc.h> +#include <linux/sed.h> #include "internal.h" #include <asm/ioctls.h> @@ -679,6 +680,8 @@ int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd, default: if (S_ISREG(inode->i_mode)) error = file_ioctl(filp, cmd, arg); + else if (is_sed_ioctl(cmd)) + error = fdev_sed_ioctl(filp, cmd, arg); else error = vfs_ioctl(filp, cmd, arg); break; diff --git a/include/linux/fs.h b/include/linux/fs.h index 2ba0743..75a99e5 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -55,6 +55,7 @@ struct workqueue_struct; struct iov_iter; struct fscrypt_info; struct fscrypt_operations; +struct sed_context; extern void __init inode_init(void); extern void __init inode_init_early(void); @@ -853,6 +854,7 @@ struct file { #ifdef CONFIG_SECURITY void *f_security; #endif + struct sed_context *f_sedctx; /* needed for tty driver, and maybe others */ void *private_data; -- 2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: scott.bauer@intel.com (Scott Bauer) Subject: [PATCH v3 3/5] fs: Wire up SED/Opal to ioctl Date: Mon, 19 Dec 2016 12:35:47 -0700 [thread overview] Message-ID: <1482176149-2257-4-git-send-email-scott.bauer@intel.com> (raw) In-Reply-To: <1482176149-2257-1-git-send-email-scott.bauer@intel.com> Adds a new sed_context pointer to file struct, for char devs who wish to suppor SED. Adds ioctl handling code. Signed-off-by: Scott Bauer <scott.bauer at intel.com> Signed-off-by: Rafael Antognolli <Rafael.Antognolli at intel.com> --- fs/ioctl.c | 3 +++ include/linux/fs.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/fs/ioctl.c b/fs/ioctl.c index cb9b029..77def42 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c @@ -15,6 +15,7 @@ #include <linux/writeback.h> #include <linux/buffer_head.h> #include <linux/falloc.h> +#include <linux/sed.h> #include "internal.h" #include <asm/ioctls.h> @@ -679,6 +680,8 @@ int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd, default: if (S_ISREG(inode->i_mode)) error = file_ioctl(filp, cmd, arg); + else if (is_sed_ioctl(cmd)) + error = fdev_sed_ioctl(filp, cmd, arg); else error = vfs_ioctl(filp, cmd, arg); break; diff --git a/include/linux/fs.h b/include/linux/fs.h index 2ba0743..75a99e5 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -55,6 +55,7 @@ struct workqueue_struct; struct iov_iter; struct fscrypt_info; struct fscrypt_operations; +struct sed_context; extern void __init inode_init(void); extern void __init inode_init_early(void); @@ -853,6 +854,7 @@ struct file { #ifdef CONFIG_SECURITY void *f_security; #endif + struct sed_context *f_sedctx; /* needed for tty driver, and maybe others */ void *private_data; -- 2.7.4
next prev parent reply other threads:[~2016-12-19 19:43 UTC|newest] Thread overview: 70+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-12-19 19:35 [PATCH v3 0/5] SED OPAL Library Scott Bauer 2016-12-19 19:35 ` Scott Bauer 2016-12-19 19:35 ` [PATCH v3 1/5] include: Add definitions for sed Scott Bauer 2016-12-19 19:35 ` Scott Bauer 2016-12-20 6:46 ` Christoph Hellwig 2016-12-20 6:46 ` Christoph Hellwig 2016-12-25 14:15 ` Jethro Beekman 2016-12-25 14:15 ` Jethro Beekman 2016-12-27 22:14 ` Scott Bauer 2016-12-27 22:14 ` Scott Bauer 2016-12-19 19:35 ` [PATCH v3 2/5] lib: Add Sed-opal library Scott Bauer 2016-12-19 19:35 ` Scott Bauer 2016-12-19 21:34 ` Keith Busch 2016-12-19 21:34 ` Keith Busch 2016-12-20 6:07 ` Christoph Hellwig 2016-12-20 6:07 ` Christoph Hellwig 2016-12-20 3:21 ` kbuild test robot 2016-12-20 3:21 ` kbuild test robot 2016-12-20 3:48 ` kbuild test robot 2016-12-20 3:48 ` kbuild test robot 2016-12-20 6:50 ` Al Viro 2016-12-20 6:50 ` Al Viro 2016-12-20 7:28 ` Christoph Hellwig 2016-12-20 7:28 ` Christoph Hellwig 2016-12-20 21:55 ` Scott Bauer 2016-12-20 21:55 ` Scott Bauer 2016-12-21 9:42 ` Christoph Hellwig 2016-12-21 9:42 ` Christoph Hellwig 2016-12-20 22:07 ` Jon Derrick 2016-12-20 22:07 ` Jon Derrick 2016-12-21 9:47 ` Christoph Hellwig 2016-12-21 9:47 ` Christoph Hellwig 2016-12-19 19:35 ` Scott Bauer [this message] 2016-12-19 19:35 ` [PATCH v3 3/5] fs: Wire up SED/Opal to ioctl Scott Bauer 2016-12-20 6:21 ` Christoph Hellwig 2016-12-20 6:21 ` Christoph Hellwig 2016-12-19 19:35 ` [PATCH v3 4/5] nvme: Implement resume_from_suspend and SED Allocation code Scott Bauer 2016-12-19 19:35 ` Scott Bauer 2016-12-19 21:59 ` Keith Busch 2016-12-19 21:59 ` Keith Busch 2016-12-19 22:23 ` Scott Bauer 2016-12-19 22:23 ` Scott Bauer 2016-12-20 6:17 ` Christoph Hellwig 2016-12-20 6:17 ` Christoph Hellwig 2016-12-20 15:49 ` Keith Busch 2016-12-20 15:49 ` Keith Busch 2016-12-20 15:46 ` Christoph Hellwig 2016-12-20 15:46 ` Christoph Hellwig 2016-12-20 16:05 ` Scott Bauer 2016-12-20 16:05 ` Scott Bauer 2016-12-21 9:01 ` Christoph Hellwig 2016-12-21 9:01 ` Christoph Hellwig 2016-12-20 17:52 ` Scott Bauer 2016-12-20 17:52 ` Scott Bauer 2016-12-21 9:37 ` Christoph Hellwig 2016-12-21 9:37 ` Christoph Hellwig 2016-12-20 4:11 ` kbuild test robot 2016-12-20 4:11 ` kbuild test robot 2016-12-20 6:21 ` Christoph Hellwig 2016-12-20 6:21 ` Christoph Hellwig 2016-12-20 6:49 ` Christoph Hellwig 2016-12-20 6:49 ` Christoph Hellwig 2016-12-25 14:15 ` Jethro Beekman 2016-12-25 14:15 ` Jethro Beekman 2016-12-27 22:12 ` Scott Bauer 2016-12-27 22:12 ` Scott Bauer 2016-12-28 8:39 ` Christoph Hellwig 2016-12-28 8:39 ` Christoph Hellwig 2016-12-19 19:35 ` [PATCH v3 5/5] Maintainers: Add Information for SED Opal library Scott Bauer 2016-12-19 19:35 ` Scott Bauer
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=1482176149-2257-4-git-send-email-scott.bauer@intel.com \ --to=scott.bauer@intel.com \ --cc=Rafael.Antognolli@intel.com \ --cc=axboe@fb.com \ --cc=hch@infradead.org \ --cc=jonathan.derrick@intel.com \ --cc=keith.busch@intel.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-nvme@lists.infradead.org \ --cc=sagi@grimberg.me \ --cc=viro@zeniv.linux.org.uk \ /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.