Re: [PATCH v2 1/5] btrfs: add compat_flags to btrfs_inode_item

2021-03-15 Thread Boris Burkov
On Mon, Mar 15, 2021 at 04:07:24PM -0700, Eric Biggers wrote: > On Fri, Mar 05, 2021 at 11:26:29AM -0800, Boris Burkov wrote: > > The tree checker currently rejects unrecognized flags when it reads > > btrfs_inode_item. Practically, this means that adding a new flag makes > > the change backwards i

Re: [PATCH v2 1/5] btrfs: add compat_flags to btrfs_inode_item

2021-03-15 Thread Eric Biggers
On Fri, Mar 05, 2021 at 11:26:29AM -0800, Boris Burkov wrote: > The tree checker currently rejects unrecognized flags when it reads > btrfs_inode_item. Practically, this means that adding a new flag makes > the change backwards incompatible if the flag is ever set on a file. > > Take up one of the

[PATCH v2 1/5] btrfs: add compat_flags to btrfs_inode_item

2021-03-05 Thread Boris Burkov
The tree checker currently rejects unrecognized flags when it reads btrfs_inode_item. Practically, this means that adding a new flag makes the change backwards incompatible if the flag is ever set on a file. Take up one of the 4 reserved u64 fields in the btrfs_inode_item as a new "compat_flags".