summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huaweicloud.com>2024-06-06 20:55:06 +0800
committerTheodore Ts'o <tytso@mit.edu>2024-08-20 22:56:30 -0400
commit6ceeb2d8fdb19a1b6bb9cc48302e682fb380043b (patch)
tree1f8539be42d0d0bee748ccd00fc9281fc74488de
parentf67fbacd923f280c55b9e26e49650331446ef335 (diff)
downloadlwn-6ceeb2d8fdb19a1b6bb9cc48302e682fb380043b.tar.gz
lwn-6ceeb2d8fdb19a1b6bb9cc48302e682fb380043b.zip
ext4: correct comment of ext4_xattr_cmp
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>
-rw-r--r--fs/ext4/xattr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
index 46ce2f21fef9..54928ba243ca 100644
--- a/fs/ext4/xattr.c
+++ b/fs/ext4/xattr.c
@@ -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,