Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'erofs-for-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs

Pull erofs updates from Gao Xiang:
"No noticable change available for this cycle. Just a bugfix related to
sb chksum feature, two minor cleanups and Chao's email address update:

- fix wrong error code overwritten due to sb checksum feature

- two minor cleanups

- update Chao's email address"

* tag 'erofs-for-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs:
MAINTAINERS: erofs: update my email address
erofs: clean up file headers & footers
erofs: remove the occupied parameter from z_erofs_pagevec_enqueue()
erofs: fix error return code in erofs_read_superblock()

+4 -42
+1 -1
MAINTAINERS
··· 6786 6786 6787 6787 EROFS FILE SYSTEM 6788 6788 M: Gao Xiang <xiang@kernel.org> 6789 - M: Chao Yu <yuchao0@huawei.com> 6789 + M: Chao Yu <chao@kernel.org> 6790 6790 L: linux-erofs@lists.ozlabs.org 6791 6791 S: Maintained 6792 6792 T: git git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
-1
fs/erofs/Kconfig
··· 75 75 Enable fixed-sized output compression for EROFS. 76 76 77 77 If you don't want to enable compression feature, say N. 78 -
-2
fs/erofs/compress.h
··· 2 2 /* 3 3 * Copyright (C) 2019 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #ifndef __EROFS_FS_COMPRESS_H 8 7 #define __EROFS_FS_COMPRESS_H ··· 84 85 struct list_head *pagepool); 85 86 86 87 #endif 87 -
-2
fs/erofs/data.c
··· 2 2 /* 3 3 * Copyright (C) 2017-2018 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #include "internal.h" 8 7 #include <linux/prefetch.h> ··· 314 315 .readahead = erofs_raw_access_readahead, 315 316 .bmap = erofs_bmap, 316 317 }; 317 -
-2
fs/erofs/decompressor.c
··· 2 2 /* 3 3 * Copyright (C) 2019 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #include "compress.h" 8 7 #include <linux/module.h> ··· 406 407 return z_erofs_shifted_transform(rq, pagepool); 407 408 return z_erofs_decompress_generic(rq, pagepool); 408 409 } 409 -
-2
fs/erofs/dir.c
··· 2 2 /* 3 3 * Copyright (C) 2017-2018 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #include "internal.h" 8 7 ··· 138 139 .read = generic_read_dir, 139 140 .iterate_shared = erofs_readdir, 140 141 }; 141 -
-2
fs/erofs/erofs_fs.h
··· 4 4 * 5 5 * Copyright (C) 2017-2018 HUAWEI, Inc. 6 6 * https://www.huawei.com/ 7 - * Created by Gao Xiang <gaoxiang25@huawei.com> 8 7 */ 9 8 #ifndef __EROFS_FS_H 10 9 #define __EROFS_FS_H ··· 347 348 } 348 349 349 350 #endif 350 -
-2
fs/erofs/inode.c
··· 2 2 /* 3 3 * Copyright (C) 2017-2018 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #include "xattr.h" 8 7 ··· 373 374 .listxattr = erofs_listxattr, 374 375 .get_acl = erofs_get_acl, 375 376 }; 376 -
-2
fs/erofs/internal.h
··· 2 2 /* 3 3 * Copyright (C) 2017-2018 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #ifndef __EROFS_INTERNAL_H 8 7 #define __EROFS_INTERNAL_H ··· 468 469 #define EFSCORRUPTED EUCLEAN /* Filesystem is corrupted */ 469 470 470 471 #endif /* __EROFS_INTERNAL_H */ 471 -
-2
fs/erofs/namei.c
··· 2 2 /* 3 3 * Copyright (C) 2017-2018 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #include "xattr.h" 8 7 ··· 246 247 .listxattr = erofs_listxattr, 247 248 .get_acl = erofs_get_acl, 248 249 }; 249 -
+1 -2
fs/erofs/super.c
··· 2 2 /* 3 3 * Copyright (C) 2017-2018 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #include <linux/module.h> 8 7 #include <linux/buffer_head.h> ··· 284 285 goto out; 285 286 } 286 287 288 + ret = -EINVAL; 287 289 blkszbits = dsb->blkszbits; 288 290 /* 9(512 bytes) + LOG_SECTORS_PER_BLOCK == LOG_BLOCK_SIZE */ 289 291 if (blkszbits != LOG_BLOCK_SIZE) { ··· 751 751 MODULE_DESCRIPTION("Enhanced ROM File System"); 752 752 MODULE_AUTHOR("Gao Xiang, Chao Yu, Miao Xie, CONSUMER BG, HUAWEI Inc."); 753 753 MODULE_LICENSE("GPL"); 754 -
-3
fs/erofs/tagptr.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 2 /* 3 3 * A tagged pointer implementation 4 - * 5 - * Copyright (C) 2018 Gao Xiang <gaoxiang25@huawei.com> 6 4 */ 7 5 #ifndef __EROFS_FS_TAGPTR_H 8 6 #define __EROFS_FS_TAGPTR_H ··· 105 107 *ptptr; }) 106 108 107 109 #endif /* __EROFS_FS_TAGPTR_H */ 108 -
-2
fs/erofs/utils.c
··· 2 2 /* 3 3 * Copyright (C) 2018 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #include "internal.h" 8 7 #include <linux/pagevec.h> ··· 277 278 unregister_shrinker(&erofs_shrinker_info); 278 279 } 279 280 #endif /* !CONFIG_EROFS_FS_ZIP */ 280 -
-2
fs/erofs/xattr.c
··· 2 2 /* 3 3 * Copyright (C) 2017-2018 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #include <linux/security.h> 8 7 #include "xattr.h" ··· 708 709 return acl; 709 710 } 710 711 #endif 711 -
-1
fs/erofs/xattr.h
··· 2 2 /* 3 3 * Copyright (C) 2017-2018 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #ifndef __EROFS_XATTR_H 8 7 #define __EROFS_XATTR_H
+1 -5
fs/erofs/zdata.c
··· 2 2 /* 3 3 * Copyright (C) 2018 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #include "zdata.h" 8 7 #include "compress.h" ··· 379 380 enum z_erofs_page_type type) 380 381 { 381 382 int ret; 382 - bool occupied; 383 383 384 384 /* give priority for inplaceio */ 385 385 if (clt->mode >= COLLECT_PRIMARY && ··· 386 388 z_erofs_try_inplace_io(clt, page)) 387 389 return 0; 388 390 389 - ret = z_erofs_pagevec_enqueue(&clt->vector, 390 - page, type, &occupied); 391 + ret = z_erofs_pagevec_enqueue(&clt->vector, page, type); 391 392 clt->cl->vcnt += (unsigned int)ret; 392 393 393 394 return ret ? 0 : -EAGAIN; ··· 1468 1471 .readpage = z_erofs_readpage, 1469 1472 .readahead = z_erofs_readahead, 1470 1473 }; 1471 -
-1
fs/erofs/zdata.h
··· 2 2 /* 3 3 * Copyright (C) 2018 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #ifndef __EROFS_FS_ZDATA_H 8 7 #define __EROFS_FS_ZDATA_H
-2
fs/erofs/zmap.c
··· 2 2 /* 3 3 * Copyright (C) 2018-2019 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #include "internal.h" 8 7 #include <asm/unaligned.h> ··· 596 597 DBG_BUGON(err < 0 && err != -ENOMEM); 597 598 return err; 598 599 } 599 -
+1 -6
fs/erofs/zpvec.h
··· 2 2 /* 3 3 * Copyright (C) 2018 HUAWEI, Inc. 4 4 * https://www.huawei.com/ 5 - * Created by Gao Xiang <gaoxiang25@huawei.com> 6 5 */ 7 6 #ifndef __EROFS_FS_ZPVEC_H 8 7 #define __EROFS_FS_ZPVEC_H ··· 106 107 107 108 static inline bool z_erofs_pagevec_enqueue(struct z_erofs_pagevec_ctor *ctor, 108 109 struct page *page, 109 - enum z_erofs_page_type type, 110 - bool *occupied) 110 + enum z_erofs_page_type type) 111 111 { 112 - *occupied = false; 113 112 if (!ctor->next && type) 114 113 if (ctor->index + 1 == ctor->nr) 115 114 return false; ··· 122 125 /* should remind that collector->next never equal to 1, 2 */ 123 126 if (type == (uintptr_t)ctor->next) { 124 127 ctor->next = page; 125 - *occupied = true; 126 128 } 127 129 ctor->pages[ctor->index++] = tagptr_fold(erofs_vtptr_t, page, type); 128 130 return true; ··· 150 154 return tagptr_unfold_ptr(t); 151 155 } 152 156 #endif 153 -