Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/816563/?format=api
{ "id": 816563, "url": "http://patchwork.ozlabs.org/api/patches/816563/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20170920224605.22030-16-ebiggers3@gmail.com/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/projects/8/?format=api", "name": "Linux ext4 filesystem development", "link_name": "linux-ext4", "list_id": "linux-ext4.vger.kernel.org", "list_email": "linux-ext4@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170920224605.22030-16-ebiggers3@gmail.com>", "list_archive_url": null, "date": "2017-09-20T22:45:55", "name": "[15/25] ext4: switch to fscrypt_prepare_setattr()", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": true, "hash": "6591071d3fafea769728b32e8c7c67266d4549fa", "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-ext4/patch/20170920224605.22030-16-ebiggers3@gmail.com/mbox/", "series": [ { "id": 4249, "url": "http://patchwork.ozlabs.org/api/series/4249/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=4249", "date": "2017-09-20T22:45:40", "name": "fscrypt: add some higher-level helper functions", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/4249/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/816563/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/816563/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-ext4-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": "patchwork-incoming@ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-ext4-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"Tq8AbgOE\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyFKk1VKkz9sPk\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 21 Sep 2017 08:49:14 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752015AbdITWsv (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 20 Sep 2017 18:48:51 -0400", "from mail-pg0-f66.google.com ([74.125.83.66]:35924 \"EHLO\n\tmail-pg0-f66.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751813AbdITWrI (ORCPT\n\t<rfc822; linux-ext4@vger.kernel.org>); Wed, 20 Sep 2017 18:47:08 -0400", "by mail-pg0-f66.google.com with SMTP id d8so2372895pgt.3;\n\tWed, 20 Sep 2017 15:47:08 -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.47.07\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 20 Sep 2017 15:47:07 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=IggHwABRZFA4QcnHeUfeWTo3vHu5MJz9hAOmovqjsmc=;\n\tb=Tq8AbgOEcuQEvMA6z0iwMbYdEHQN/t+LyWxtSU7IOzucc6wdbMEM16rBAJFXH5U2xm\n\taWQDoGBnKbgWDv5E+8Kw/36+vE8Lo0Qj3M2Pi6PKHqBRvjvWKj/Ho/eNpjOxJUEz9DFT\n\tKqSAHdGDphLcr/8+9iiLyVNOBN0b58V6sv7dogYy9WBpIxQgURmGm7CTMaEFvKYvKqps\n\t0XuBqoLYrlo2F9nT6oYCLuD+c08obL9Qs57iV2Bh5I8B306mP31Q1P2GvZgi7Gl6l0Kq\n\thgA6J9ckS8vVNjctg3ZYRE4OgQklAOnRXR9YSGx1X3/hvc25aQkJ8uFfMZW91lKVt8wL\n\ttDDQ==", "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=IggHwABRZFA4QcnHeUfeWTo3vHu5MJz9hAOmovqjsmc=;\n\tb=UkN+dfHC3J8//Mj+I871qH2ArEh9poC4Rl14FhsX/seakhu5iU4l3MdTADyq/5rotm\n\tUOH8hLhgHsEMQPDFzfGYM3QROXs+getgBFw19WYEHtsp6SG/9QqurjoG/biLIsoZ9+tz\n\tOQL6TwVjtbyO7uCH4h5BpIZzdpV72SI1T/TaP2PSbhRU4s6f8mG46m2n6xDCQfCa7eST\n\tdh6GYRwUFj+sKOMjQAWTSGi08GXp75wYvMrnoYhFD02JHjCgNvmHHY41lV1zf/pkbQvv\n\tHOEcQ18QV4XzDG3JxzfUHmxdjERGcLS+sTCxothQnYJglolZ3aWbHZ6e9gMd0CxvGKIk\n\tiB5g==", "X-Gm-Message-State": "AHPjjUitz+4xzmKKYCgpsdFw+D1IcHlL/37QiTGN+nnEE+9ShCawLEE4\n\tT9A7nEIWkMag31v8uvhEsFbJMAXUId8=", "X-Google-Smtp-Source": "AOwi7QDu9zLe9MpV2DEY8V5dX957ETiMp/SmMH349YX3kQs/5nXlouGJ2Z29Awi0NhxQ+BmfuH9MJg==", "X-Received": "by 10.84.216.87 with SMTP id f23mr3512435plj.307.1505947627777; \n\tWed, 20 Sep 2017 15:47:07 -0700 (PDT)", "From": "Eric Biggers <ebiggers3@gmail.com>", "To": "linux-fscrypt@vger.kernel.org", "Cc": "linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,\n\tlinux-f2fs-devel@lists.sourceforge.net,\n\tlinux-mtd@lists.infradead.org, \"Theodore Y . Ts'o\" <tytso@mit.edu>,\n\tJaegeuk Kim <jaegeuk@kernel.org>, Michael Halcrow <mhalcrow@google.com>,\n\tEric Biggers <ebiggers@google.com>", "Subject": "[PATCH 15/25] ext4: switch to fscrypt_prepare_setattr()", "Date": "Wed, 20 Sep 2017 15:45:55 -0700", "Message-Id": "<20170920224605.22030-16-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>", "Sender": "linux-ext4-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<linux-ext4.vger.kernel.org>", "X-Mailing-List": "linux-ext4@vger.kernel.org" }, "content": "From: Eric Biggers <ebiggers@google.com>\n\nSigned-off-by: Eric Biggers <ebiggers@google.com>\n---\n fs/ext4/inode.c | 12 ++++--------\n 1 file changed, 4 insertions(+), 8 deletions(-)", "diff": "diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c\nindex d5a471939fbc..617c7feced24 100644\n--- a/fs/ext4/inode.c\n+++ b/fs/ext4/inode.c\n@@ -5311,6 +5311,10 @@ int ext4_setattr(struct dentry *dentry, struct iattr *attr)\n \tif (error)\n \t\treturn error;\n \n+\terror = fscrypt_prepare_setattr(dentry, attr);\n+\tif (error)\n+\t\treturn error;\n+\n \tif (is_quota_modification(inode, attr)) {\n \t\terror = dquot_initialize(inode);\n \t\tif (error)\n@@ -5356,14 +5360,6 @@ int ext4_setattr(struct dentry *dentry, struct iattr *attr)\n \t\tloff_t oldsize = inode->i_size;\n \t\tint shrink = (attr->ia_size <= inode->i_size);\n \n-\t\tif (ext4_encrypted_inode(inode)) {\n-\t\t\terror = fscrypt_get_encryption_info(inode);\n-\t\t\tif (error)\n-\t\t\t\treturn error;\n-\t\t\tif (!fscrypt_has_encryption_key(inode))\n-\t\t\t\treturn -ENOKEY;\n-\t\t}\n-\n \t\tif (!(ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS))) {\n \t\t\tstruct ext4_sb_info *sbi = EXT4_SB(inode->i_sb);\n \n", "prefixes": [ "15/25" ] }