Omar Sandoval 305eaac009 btrfs: set inode flags earlier in btrfs_new_inode()
btrfs_new_inode() inherits the inode flags from the parent directory and
the mount options _after_ we fill the inode item. This works because all
of the callers of btrfs_new_inode() make further changes to the inode
and then call btrfs_update_inode(). It'd be better to fully initialize
the inode once to avoid the extra update, so as a first step, set the
inode flags _before_ filling the inode item.

Reviewed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2022-05-16 17:03:06 +02:00
..
2022-02-02 07:49:59 -07:00
2022-04-26 11:10:42 -07:00
2022-01-07 14:18:23 +01:00
2021-06-22 14:11:57 +02:00
2022-05-06 14:32:16 -07:00
2022-04-26 11:10:42 -07:00
2021-06-22 14:11:57 +02:00
2021-11-08 16:55:21 -08:00