Re: [PATCH 3/4] Btrfs: resurrect extent_read_full_page_nolock()

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

 



On 2/19/20 9:06 AM, fdmanana@xxxxxxxxxx wrote:
From: Filipe Manana <fdmanana@xxxxxxxx>

Commit 7f042a8370a5bb ("Btrfs: remove no longer used function
extent_read_full_page_nolock()") removed extent_read_full_page_nolock()
because it was not needed anymore.

This function was used to read a page while holding the respective range
locked in the inode's iotree, to avoid deadlocks when using the other
APIs we have for reading a page (which lock and unlock the range
themselves).

Since this type of functionality is needed for the upcoming changes to
the reflink implementation dealing with cloning of inline extents, bring
back this function to life.

Signed-off-by: Filipe Manana <fdmanana@xxxxxxxx>

Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx>

Thanks,

Josef



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux