projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b14737
)
ext4: correct comment of h_checksum
author
Kemeng Shi
<shikemeng@huaweicloud.com>
Thu, 6 Jun 2024 12:55:08 +0000
(20:55 +0800)
committer
Theodore Ts'o
<tytso@mit.edu>
Wed, 21 Aug 2024 02:56:30 +0000
(22:56 -0400)
Checksum of xattr block is always crc32c(uuid+blknum+xattrblock), see
ext4_xattr_block_csum_set for detail. Remove incorrect comment that
"id = inum if refcount=1".
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Link:
https://patch.msgid.link/20240606125508.1459893-4-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/xattr.h
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/xattr.h
b/fs/ext4/xattr.h
index bd97c4aa81778e21740c0f09424b4a326f462584..7df0d77643c70fda86638a1a95b601b6f130b50e 100644
(file)
--- a/
fs/ext4/xattr.h
+++ b/
fs/ext4/xattr.h
@@
-32,8
+32,7
@@
struct ext4_xattr_header {
__le32 h_refcount; /* reference count */
__le32 h_blocks; /* number of disk blocks used */
__le32 h_hash; /* hash value of all attributes */
- __le32 h_checksum; /* crc32c(uuid+id+xattrblock) */
- /* id = inum if refcount=1, blknum otherwise */
+ __le32 h_checksum; /* crc32c(uuid+blknum+xattrblock) */
__u32 h_reserved[3]; /* zero right now */
};