projects
/
platform
/
upstream
/
erofs-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79943b2
)
erofs-utils: lib: fix btype for the data tails of directories
author
Gao Xiang
<hsiangkao@linux.alibaba.com>
Wed, 25 Dec 2024 07:04:54 +0000
(15:04 +0800)
committer
Gao Xiang
<hsiangkao@linux.alibaba.com>
Sat, 5 Apr 2025 16:25:21 +0000
(
00:25
+0800)
It should be DIRA instead of DATA for directories.
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link:
https://lore.kernel.org/r/20241225070454.750271-1-hsiangkao@linux.alibaba.com
lib/inode.c
patch
|
blob
|
history
diff --git
a/lib/inode.c
b/lib/inode.c
index c4edd43d1aedbc24a53e8be53cbb6ca6a230aa6c..91ff4ceeb4b3b79da7763ea827e63e5ec1c1d7ba 100644
(file)
--- a/
lib/inode.c
+++ b/
lib/inode.c
@@
-850,7
+850,8
@@
static int erofs_write_tail_end(struct erofs_inode *inode)
erofs_off_t pos, zero_pos;
if (!bh) {
- bh = erofs_balloc(sbi->bmgr, DATA,
+ bh = erofs_balloc(sbi->bmgr,
+ S_ISDIR(inode->i_mode) ? DIRA: DATA,
erofs_blksiz(sbi), 0, 0);
if (IS_ERR(bh))
return PTR_ERR(bh);