Merge tag 'for-5.15-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 11 Oct 2021 23:48:19 +0000 (16:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 11 Oct 2021 23:48:19 +0000 (16:48 -0700)
Pull btrfs fixes from David Sterba:
 "A few more error handling fixes, stemming from code inspection, error
  injection or fuzzing"

* tag 'for-5.15-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
  btrfs: fix abort logic in btrfs_replace_file_extents
  btrfs: check for error when looking up inode during dir entry replay
  btrfs: unify lookup return value when dir entry is missing
  btrfs: deal with errors when adding inode reference during log replay
  btrfs: deal with errors when replaying dir entry during log replay
  btrfs: deal with errors when checking if a dir entry exists during log replay
  btrfs: update refs for any root except tree log roots
  btrfs: unlock newly allocated extent buffer after error

1  2 
fs/btrfs/ctree.h

diff --combined fs/btrfs/ctree.h
@@@ -3030,7 -3030,7 +3030,7 @@@ struct btrfs_dir_item 
  btrfs_lookup_dir_index_item(struct btrfs_trans_handle *trans,
                            struct btrfs_root *root,
                            struct btrfs_path *path, u64 dir,
-                           u64 objectid, const char *name, int name_len,
+                           u64 index, const char *name, int name_len,
                            int mod);
  struct btrfs_dir_item *
  btrfs_search_dir_index_item(struct btrfs_root *root,
@@@ -3706,7 -3706,7 +3706,7 @@@ static inline int __btrfs_fs_compat_ro(
  
  /* acl.c */
  #ifdef CONFIG_BTRFS_FS_POSIX_ACL
 -struct posix_acl *btrfs_get_acl(struct inode *inode, int type);
 +struct posix_acl *btrfs_get_acl(struct inode *inode, int type, bool rcu);
  int btrfs_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
                  struct posix_acl *acl, int type);
  int btrfs_init_acl(struct btrfs_trans_handle *trans,