Re: [PATCH 13/30] isofs: Remove calls to set/clear the error flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat 20-04-24 03:50:08, Matthew Wilcox (Oracle) wrote:
> Nobody checks the error flag on isofs folios, so stop setting and
> clearing it.
> 
> Cc: Jan Kara <jack@xxxxxxx>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>

Do you plan to merge this together or should I pick this up myself?

Feel free to add:

Acked-by: Jan Kara <jack@xxxxxxx>

								Honza

> ---
>  fs/isofs/compress.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/fs/isofs/compress.c b/fs/isofs/compress.c
> index c4da3f634b92..34d5baa5d88a 100644
> --- a/fs/isofs/compress.c
> +++ b/fs/isofs/compress.c
> @@ -346,8 +346,6 @@ static int zisofs_read_folio(struct file *file, struct folio *folio)
>  	for (i = 0; i < pcount; i++, index++) {
>  		if (i != full_page)
>  			pages[i] = grab_cache_page_nowait(mapping, index);
> -		if (pages[i])
> -			ClearPageError(pages[i]);
>  	}
>  
>  	err = zisofs_fill_pages(inode, full_page, pcount, pages);
> @@ -356,8 +354,6 @@ static int zisofs_read_folio(struct file *file, struct folio *folio)
>  	for (i = 0; i < pcount; i++) {
>  		if (pages[i]) {
>  			flush_dcache_page(pages[i]);
> -			if (i == full_page && err)
> -				SetPageError(pages[i]);
>  			unlock_page(pages[i]);
>  			if (i != full_page)
>  				put_page(pages[i]);
> -- 
> 2.43.0
> 
-- 
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux