Merge tag 'for-6.2-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jan 2023 20:01:49 +0000 (12:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jan 2023 20:01:49 +0000 (12:01 -0800)
Pull btrfs fixes from David Sterba:
 "A few more regression and regular fixes:

   - regressions:
       - fix assertion condition using = instead of ==
       - fix false alert on bad tree level check
       - fix off-by-one error in delalloc search during lseek

   - fix compat ro feature check at read-write remount

   - handle case when read-repair happens with ongoing device replace

   - updated error messages"

* tag 'for-6.2-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
  btrfs: fix compat_ro checks against remount
  btrfs: always report error in run_one_delayed_ref()
  btrfs: handle case when repair happens with dev-replace
  btrfs: fix off-by-one in delalloc search during lseek
  btrfs: fix false alert on bad tree level check
  btrfs: add error message for metadata level mismatch
  btrfs: fix ASSERT em->len condition in btrfs_get_extent

1  2 
fs/btrfs/inode.c

diff --combined fs/btrfs/inode.c
@@@ -5307,7 -5307,7 +5307,7 @@@ static int btrfs_setattr(struct user_na
                err = btrfs_dirty_inode(BTRFS_I(inode));
  
                if (!err && attr->ia_valid & ATTR_MODE)
 -                      err = posix_acl_chmod(mnt_userns, inode, inode->i_mode);
 +                      err = posix_acl_chmod(mnt_userns, dentry, inode->i_mode);
        }
  
        return err;
@@@ -7092,7 -7092,7 +7092,7 @@@ next
                 * Other members are not utilized for inline extents.
                 */
                ASSERT(em->block_start == EXTENT_MAP_INLINE);
-               ASSERT(em->len = fs_info->sectorsize);
+               ASSERT(em->len == fs_info->sectorsize);
  
                ret = read_inline_extent(inode, path, page);
                if (ret < 0)
@@@ -11362,7 -11362,7 +11362,7 @@@ static const struct inode_operations bt
        .mknod          = btrfs_mknod,
        .listxattr      = btrfs_listxattr,
        .permission     = btrfs_permission,
 -      .get_acl        = btrfs_get_acl,
 +      .get_inode_acl  = btrfs_get_acl,
        .set_acl        = btrfs_set_acl,
        .update_time    = btrfs_update_time,
        .tmpfile        = btrfs_tmpfile,
@@@ -11415,7 -11415,7 +11415,7 @@@ static const struct inode_operations bt
        .listxattr      = btrfs_listxattr,
        .permission     = btrfs_permission,
        .fiemap         = btrfs_fiemap,
 -      .get_acl        = btrfs_get_acl,
 +      .get_inode_acl  = btrfs_get_acl,
        .set_acl        = btrfs_set_acl,
        .update_time    = btrfs_update_time,
        .fileattr_get   = btrfs_fileattr_get,
@@@ -11426,7 -11426,7 +11426,7 @@@ static const struct inode_operations bt
        .setattr        = btrfs_setattr,
        .permission     = btrfs_permission,
        .listxattr      = btrfs_listxattr,
 -      .get_acl        = btrfs_get_acl,
 +      .get_inode_acl  = btrfs_get_acl,
        .set_acl        = btrfs_set_acl,
        .update_time    = btrfs_update_time,
  };