Re: [PATCH 24/26] jbd2: Convert release_buffer_page() to use a folio

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

 



On Sun, May 08, 2022 at 09:32:45PM +0100, Matthew Wilcox (Oracle) wrote:
> Saves a few calls to compound_head().
>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>

Acked-by: Theodore Ts'o <tytso@xxxxxxx>

... although I have one question:

> -	get_page(page);
> +	folio_get(folio);
>  	__brelse(bh);
> -	try_to_free_buffers(page);
> -	unlock_page(page);
> -	put_page(page);
> +	try_to_free_buffers(&folio->page);

The patches in this series seem to assume that the folio contains only
a single page.  Or at least, a *lot* more detailed auditing to make
sure the right thing would happen if a page happens to be a member of
a folio with more than a single page.

Should we be adding some kind of WARN_ON to check this particular
assumption?

					- Ted



[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