]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fscrypt: Remove gfp_t argument from fscrypt_encrypt_block_inplace()
authorEric Biggers <ebiggers@kernel.org>
Thu, 10 Jul 2025 06:07:52 +0000 (23:07 -0700)
committerEric Biggers <ebiggers@kernel.org>
Thu, 10 Jul 2025 19:33:13 +0000 (12:33 -0700)
This argument is no longer used, so remove it.

Reviewed-by: Alex Markuze <amarkuze@redhat.com>
Link: https://lore.kernel.org/r/20250710060754.637098-6-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
fs/ceph/crypto.c
fs/crypto/crypto.c
fs/ubifs/crypto.c
include/linux/fscrypt.h

index 3b3c4d8d401ece05205609eddeb4b4a230238300..6d04d528ed03851d8c3d3897cd7b8b60ff652bfa 100644 (file)
@@ -523,8 +523,7 @@ int ceph_fscrypt_encrypt_block_inplace(const struct inode *inode,
 
        doutc(cl, "%p %llx.%llx len %u offs %u blk %llu\n", inode,
              ceph_vinop(inode), len, offs, lblk_num);
-       return fscrypt_encrypt_block_inplace(inode, page, len, offs, lblk_num,
-                                            gfp_flags);
+       return fscrypt_encrypt_block_inplace(inode, page, len, offs, lblk_num);
 }
 
 /**
index bab0aacd4da36622e4742b08a7e2cd97c1675622..b6ccab524fdef82190278dea17b87fafa8d6d3b4 100644 (file)
@@ -217,7 +217,6 @@ EXPORT_SYMBOL(fscrypt_encrypt_pagecache_blocks);
  * @offs:      Byte offset within @page at which the block to encrypt begins
  * @lblk_num:  Filesystem logical block number of the block, i.e. the 0-based
  *             number of the block within the file
- * @gfp_flags: Memory allocation flags
  *
  * Encrypt a possibly-compressed filesystem block that is located in an
  * arbitrary page, not necessarily in the original pagecache page.  The @inode
@@ -229,7 +228,7 @@ EXPORT_SYMBOL(fscrypt_encrypt_pagecache_blocks);
  */
 int fscrypt_encrypt_block_inplace(const struct inode *inode, struct page *page,
                                  unsigned int len, unsigned int offs,
-                                 u64 lblk_num, gfp_t gfp_flags)
+                                 u64 lblk_num)
 {
        if (WARN_ON_ONCE(inode->i_sb->s_cop->supports_subblock_data_units))
                return -EOPNOTSUPP;
index 921f9033d0d2d29cd111a1db4b7fc9bcc72cc40f..fb5ac358077b15fee9704f02758c4a5274d00c9b 100644 (file)
@@ -51,7 +51,7 @@ int ubifs_encrypt(const struct inode *inode, struct ubifs_data_node *dn,
                memset(p + in_len, 0, pad_len - in_len);
 
        err = fscrypt_encrypt_block_inplace(inode, virt_to_page(p), pad_len,
-                                           offset_in_page(p), block, GFP_NOFS);
+                                           offset_in_page(p), block);
        if (err) {
                ubifs_err(c, "fscrypt_encrypt_block_inplace() failed: %d", err);
                return err;
index 56fad33043d539b69d1f8c0e4dcd31b4a23138d8..8d0e3ad89b9408f4973fc0a663ab44367cd5ef28 100644 (file)
@@ -314,7 +314,7 @@ struct page *fscrypt_encrypt_pagecache_blocks(struct folio *folio,
                size_t len, size_t offs, gfp_t gfp_flags);
 int fscrypt_encrypt_block_inplace(const struct inode *inode, struct page *page,
                                  unsigned int len, unsigned int offs,
-                                 u64 lblk_num, gfp_t gfp_flags);
+                                 u64 lblk_num);
 
 int fscrypt_decrypt_pagecache_blocks(struct folio *folio, size_t len,
                                     size_t offs);
@@ -487,8 +487,7 @@ static inline struct page *fscrypt_encrypt_pagecache_blocks(struct folio *folio,
 static inline int fscrypt_encrypt_block_inplace(const struct inode *inode,
                                                struct page *page,
                                                unsigned int len,
-                                               unsigned int offs, u64 lblk_num,
-                                               gfp_t gfp_flags)
+                                               unsigned int offs, u64 lblk_num)
 {
        return -EOPNOTSUPP;
 }