This small patchset contains 3 refactors which are subpage independent.

And the last patch is RFC where I'm not certain about the existing code,
but it solves the problem for subpage during test.

Thus I'm here asking for help on the btrfs_invalidatepage() behavior.

Qu Wenruo (4):
  btrfs: inode: use min() to replace open-code in btrfs_invalidatepage()
  btrfs: inode: remove variable shadowing in btrfs_invalidatepage()
  btrfs: inode: move the timing of TestClearPagePrivate() in
    btrfs_invalidatepage()
  btrfs: inode: make btrfs_invalidatepage() to be subpage compatible

 fs/btrfs/inode.c | 45 +++++++++++++++++++++++++++------------------
 1 file changed, 27 insertions(+), 18 deletions(-)

-- 
2.29.2

Reply via email to