Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/816562/?format=api
{ "id": 816562, "url": "http://patchwork.ozlabs.org/api/patches/816562/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20170920224605.22030-4-ebiggers3@gmail.com/", "project": { "id": 3, "url": "http://patchwork.ozlabs.org/api/projects/3/?format=api", "name": "Linux MTD development", "link_name": "linux-mtd", "list_id": "linux-mtd.lists.infradead.org", "list_email": "linux-mtd@lists.infradead.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170920224605.22030-4-ebiggers3@gmail.com>", "list_archive_url": null, "date": "2017-09-20T22:45:43", "name": "[03/25] fscrypt: remove ->is_encrypted()", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": false, "hash": "0e0fdde9302998086b39371d0b3237388c7d69e9", "submitter": { "id": 65202, "url": "http://patchwork.ozlabs.org/api/people/65202/?format=api", "name": "Eric Biggers", "email": "ebiggers3@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20170920224605.22030-4-ebiggers3@gmail.com/mbox/", "series": [ { "id": 4250, "url": "http://patchwork.ozlabs.org/api/series/4250/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/list/?series=4250", "date": "2017-09-20T22:45:45", "name": "fscrypt: add some higher-level helper functions", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/4250/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/816562/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/816562/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"Wyx8rEMw\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"OM7b/Bbh\"; dkim-atps=neutral" ], "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xyFKh1mzFz9sPk\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 21 Sep 2017 08:49:12 +1000 (AEST)", "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dunnf-0006IS-Pz; Wed, 20 Sep 2017 22:48:59 +0000", "from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dunly-0004wW-3O\n\tfor linux-mtd@lists.infradead.org; Wed, 20 Sep 2017 22:47:22 +0000", "by mail-pf0-x242.google.com with SMTP id a7so1717619pfj.5\n\tfor <linux-mtd@lists.infradead.org>;\n\tWed, 20 Sep 2017 15:46:54 -0700 (PDT)", "from ebiggers-linuxstation.kir.corp.google.com ([100.66.174.81])\n\tby smtp.gmail.com with ESMTPSA id j2sm6249pgn.26.2017.09.20.15.46.53\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 20 Sep 2017 15:46:53 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References:\n\tIn-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID:\n\tContent-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc\n\t:Resent-Message-ID:List-Owner;\n\tbh=rp/JqeZsFrvfirq7+pcWS2qkjm6B5TcskGHqqK/rAC8=;\n\tb=Wyx8rEMwUz32uxhQccWa/R8Iqu\n\tTvKRQPtJdO81jmY29hFNgGvLL+iP+EzpicU6xdQbKCr16uJuXiuKkEA1PK47cDZK/Vj1//uQd0or2\n\ttBSmTjk/7gvJCAmrMQC0XeJQcu2upJvQlRGUlEwDdM/E57OYKlU6POwrbICNnU3iLnzygB5fHTbNB\n\tStp/CeLa6wm1WRTal2HZ7fe9nONbaV6+VL3Lk9m/EKxrRnX84IWPYGL3kySVqdYD0gj33HU1cDJpI\n\tFVDSq+D1d3oBx0FipJzCaKeTiM80cviQ73KHN/BAuuLwpZc59QyzouWRz88gTw+3mv6zPc9yeHCxs\n\t1w/LvYow==;", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=gcD1SEZKaP7ASsDGPEZZpHxv8JDUnE78aLD8qw/bV64=;\n\tb=OM7b/BbhGfwnnyoKhW7USH+8q8KnDEH01igCtVtnQLpWx9LGRrXdFto4QayeMmsLra\n\tocVfUtRTVX8h3jOMl6VZjGVIYNOELAhWFI/vcNWOJXHrE3+eVxu8sY/7OZKFeTYECjyb\n\trkavdVFMIYd1yqn3Pv+gfdpNvvoaY9y1mrLkHksFK0wW83Ad9Zrv9WJvi+v9rj7y8iMW\n\t4B/chhZ7UfrD6nTC/GKTJkBiZI6FULrd9DiuyBDwYfFArA+MOUq3Tqb1ibNOruK8WCBa\n\teW72Q18OSXhT/Rbl0HO6ncr7/qxCczKRauMzVr54xanQjWJN55CY3mNhwPBWVBt0P5jv\n\t4rRA==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=gcD1SEZKaP7ASsDGPEZZpHxv8JDUnE78aLD8qw/bV64=;\n\tb=PaDeY7UpyP40oj8oQL3XmzFOwzTITYikSEz2aWMyhfih0HK0otnQhAyq66KeHz+nNt\n\tpU3K7jKqmdduJLbl1i/cCoep0ED2GoF5XfEpojPqzLjdORsEQ6SEAtY9egtaVkYFG31Q\n\tP4SflKeNRnQYrxKQIknCKWFDYAne2KT6dKKhh9PQ56CK0XajvgOmu3ZTubVh2Ktt8RVQ\n\t2uyOw1aexvZHblUZPywmRMOcikT8q5VBIzA1p7LMTAoIefNttD2nGPA3UDpEjkCHvuVi\n\tR3Po25BnWmeqLlcqpb288Nazb82C3nby0o4JChIrJQjyckGLJfieiMDlLSUb4qfdMPMa\n\tJXOQ==", "X-Gm-Message-State": "AHPjjUjIuyirRbLfZ+dNjSIsx1uYKzGUsaNWxeCjcfTNYTLuno4lcdjF\n\tjL58gecj6eM1Hm4Ye/STH4o=", "X-Google-Smtp-Source": "AOwi7QBYjjrKmxM6QNAIpjx6GNlQuL6iMi/kXgS5IHhAk9VBe5d+dzIHu2hshfMKrky0LHJMG9CdzQ==", "X-Received": "by 10.99.49.205 with SMTP id x196mr3724290pgx.121.1505947614418; \n\tWed, 20 Sep 2017 15:46:54 -0700 (PDT)", "From": "Eric Biggers <ebiggers3@gmail.com>", "To": "linux-fscrypt@vger.kernel.org", "Subject": "[PATCH 03/25] fscrypt: remove ->is_encrypted()", "Date": "Wed, 20 Sep 2017 15:45:43 -0700", "Message-Id": "<20170920224605.22030-4-ebiggers3@gmail.com>", "X-Mailer": "git-send-email 2.14.1.821.g8fa685d3b7-goog", "In-Reply-To": "<20170920224605.22030-1-ebiggers3@gmail.com>", "References": "<20170920224605.22030-1-ebiggers3@gmail.com>", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20170920_154714_178581_420EA24C ", "X-CRM114-Status": "GOOD ( 11.81 )", "X-Spam-Score": "-1.8 (-)", "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details: (-1.8 points)\n\tpts rule name description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2607:f8b0:400e:c00:0:0:0:242 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS SPF: sender matches SPF record\n\t0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends\n\tin digit (ebiggers3[at]gmail.com)\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (ebiggers3[at]gmail.com)\n\t-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain", "X-BeenThere": "linux-mtd@lists.infradead.org", "X-Mailman-Version": "2.1.21", "Precedence": "list", "List-Id": "Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/linux-mtd/>", "List-Post": "<mailto:linux-mtd@lists.infradead.org>", "List-Help": "<mailto:linux-mtd-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>", "Cc": "\"Theodore Y . Ts'o\" <tytso@mit.edu>, Eric Biggers <ebiggers@google.com>, \n\tMichael Halcrow <mhalcrow@google.com>,\n\tlinux-f2fs-devel@lists.sourceforge.net, \n\tlinux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org,\n\tJaegeuk Kim <jaegeuk@kernel.org>, linux-ext4@vger.kernel.org", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>", "Errors-To": "linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org" }, "content": "From: Eric Biggers <ebiggers@google.com>\n\nNow that all callers of fscrypt_operations.is_encrypted() have been\nswitched to IS_ENCRYPTED(), remove ->is_encrypted().\n\nSigned-off-by: Eric Biggers <ebiggers@google.com>\n---\n fs/ext4/super.c | 2 --\n fs/f2fs/super.c | 2 --\n fs/ubifs/crypto.c | 1 -\n fs/ubifs/super.c | 1 -\n fs/ubifs/ubifs.h | 9 ++-------\n include/linux/fscrypt_common.h | 1 -\n 6 files changed, 2 insertions(+), 14 deletions(-)", "diff": "diff --git a/fs/ext4/super.c b/fs/ext4/super.c\nindex dcfb19539871..bc63cdf194e3 100644\n--- a/fs/ext4/super.c\n+++ b/fs/ext4/super.c\n@@ -1241,13 +1241,11 @@ static const struct fscrypt_operations ext4_cryptops = {\n \t.get_context\t\t= ext4_get_context,\n \t.set_context\t\t= ext4_set_context,\n \t.dummy_context\t\t= ext4_dummy_context,\n-\t.is_encrypted\t\t= ext4_encrypted_inode,\n \t.empty_dir\t\t= ext4_empty_dir,\n \t.max_namelen\t\t= ext4_max_namelen,\n };\n #else\n static const struct fscrypt_operations ext4_cryptops = {\n-\t.is_encrypted\t\t= ext4_encrypted_inode,\n };\n #endif\n \ndiff --git a/fs/f2fs/super.c b/fs/f2fs/super.c\nindex 89f61eb3d167..1cb41f711ab8 100644\n--- a/fs/f2fs/super.c\n+++ b/fs/f2fs/super.c\n@@ -1594,13 +1594,11 @@ static const struct fscrypt_operations f2fs_cryptops = {\n \t.key_prefix\t= \"f2fs:\",\n \t.get_context\t= f2fs_get_context,\n \t.set_context\t= f2fs_set_context,\n-\t.is_encrypted\t= f2fs_encrypted_inode,\n \t.empty_dir\t= f2fs_empty_dir,\n \t.max_namelen\t= f2fs_max_namelen,\n };\n #else\n static const struct fscrypt_operations f2fs_cryptops = {\n-\t.is_encrypted\t= f2fs_encrypted_inode,\n };\n #endif\n \ndiff --git a/fs/ubifs/crypto.c b/fs/ubifs/crypto.c\nindex 114ba455bac3..8880fa7733d8 100644\n--- a/fs/ubifs/crypto.c\n+++ b/fs/ubifs/crypto.c\n@@ -87,7 +87,6 @@ const struct fscrypt_operations ubifs_crypt_operations = {\n \t.key_prefix\t\t= \"ubifs:\",\n \t.get_context\t\t= ubifs_crypt_get_context,\n \t.set_context\t\t= ubifs_crypt_set_context,\n-\t.is_encrypted\t\t= __ubifs_crypt_is_encrypted,\n \t.empty_dir\t\t= ubifs_crypt_empty_dir,\n \t.max_namelen\t\t= ubifs_crypt_max_namelen,\n };\ndiff --git a/fs/ubifs/super.c b/fs/ubifs/super.c\nindex 5496b17b959c..adaca6088836 100644\n--- a/fs/ubifs/super.c\n+++ b/fs/ubifs/super.c\n@@ -2009,7 +2009,6 @@ static struct ubifs_info *alloc_ubifs_info(struct ubi_volume_desc *ubi)\n \n #ifndef CONFIG_UBIFS_FS_ENCRYPTION\n const struct fscrypt_operations ubifs_crypt_operations = {\n-\t.is_encrypted\t\t= __ubifs_crypt_is_encrypted,\n };\n #endif\n \ndiff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h\nindex cd43651f1731..7b17b70cbf33 100644\n--- a/fs/ubifs/ubifs.h\n+++ b/fs/ubifs/ubifs.h\n@@ -1835,18 +1835,13 @@ int ubifs_decrypt(const struct inode *inode, struct ubifs_data_node *dn,\n \n extern const struct fscrypt_operations ubifs_crypt_operations;\n \n-static inline bool __ubifs_crypt_is_encrypted(struct inode *inode)\n+static inline bool ubifs_crypt_is_encrypted(const struct inode *inode)\n {\n-\tstruct ubifs_inode *ui = ubifs_inode(inode);\n+\tconst struct ubifs_inode *ui = ubifs_inode(inode);\n \n \treturn ui->flags & UBIFS_CRYPT_FL;\n }\n \n-static inline bool ubifs_crypt_is_encrypted(const struct inode *inode)\n-{\n-\treturn __ubifs_crypt_is_encrypted((struct inode *)inode);\n-}\n-\n /* Normal UBIFS messages */\n __printf(2, 3)\n void ubifs_msg(const struct ubifs_info *c, const char *fmt, ...);\ndiff --git a/include/linux/fscrypt_common.h b/include/linux/fscrypt_common.h\nindex 97f738628b36..4164788f7793 100644\n--- a/include/linux/fscrypt_common.h\n+++ b/include/linux/fscrypt_common.h\n@@ -78,7 +78,6 @@ struct fscrypt_operations {\n \tint (*get_context)(struct inode *, void *, size_t);\n \tint (*set_context)(struct inode *, const void *, size_t, void *);\n \tbool (*dummy_context)(struct inode *);\n-\tbool (*is_encrypted)(struct inode *);\n \tbool (*empty_dir)(struct inode *);\n \tunsigned (*max_namelen)(struct inode *);\n };\n", "prefixes": [ "03/25" ] }