projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
erofs: fix misbehavior of unsupported chunk format check
[linux-2.6-microblaze.git]
/
fs
/
erofs
/
inode.c
diff --git
a/fs/erofs/inode.c
b/fs/erofs/inode.c
index
31ac3a7
..
a552399
100644
(file)
--- a/
fs/erofs/inode.c
+++ b/
fs/erofs/inode.c
@@
-176,7
+176,7
@@
static struct page *erofs_read_inode(struct inode *inode,
}
if (vi->datalayout == EROFS_INODE_CHUNK_BASED) {
}
if (vi->datalayout == EROFS_INODE_CHUNK_BASED) {
- if (
!(vi->chunkformat & EROFS_CHUNK_FORMAT_ALL)
) {
+ if (
vi->chunkformat & ~EROFS_CHUNK_FORMAT_ALL
) {
erofs_err(inode->i_sb,
"unsupported chunk format %x of nid %llu",
vi->chunkformat, vi->nid);
erofs_err(inode->i_sb,
"unsupported chunk format %x of nid %llu",
vi->chunkformat, vi->nid);