]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ext4: correct comment of ext4_xattr_cmp
authorKemeng Shi <shikemeng@huaweicloud.com>
Thu, 6 Jun 2024 12:55:06 +0000 (20:55 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 21 Aug 2024 02:56:30 +0000 (22:56 -0400)
The ext4_xattr_cmp never returns negative error number. Correct possible
return value in ext4_xattr_cmp's comment.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Link: https://patch.msgid.link/20240606125508.1459893-2-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/xattr.c

index 46ce2f21fef9dc29e1d127b9bb8404d846337fab..54928ba243ca23c98b91b70ae45923131f0aa5ad 100644 (file)
@@ -3065,8 +3065,7 @@ ext4_xattr_block_cache_insert(struct mb_cache *ea_block_cache,
  *
  * Compare two extended attribute blocks for equality.
  *
- * Returns 0 if the blocks are equal, 1 if they differ, and
- * a negative error number on errors.
+ * Returns 0 if the blocks are equal, 1 if they differ.
  */
 static int
 ext4_xattr_cmp(struct ext4_xattr_header *header1,