• J
    Btrfs: convert the inode bit field to use the actual bit operations · 72ac3c0d
    Josef Bacik 提交于
    Miao pointed this out while I was working on an orphan problem that messing
    with a bitfield where different ranges are protected by different locks
    doesn't work out right.  Turns out we've been doing this forever where we
    have different parts of the bit field protected by either no lock at all or
    different locks which could cause all sorts of weird problems including the
    issue I was hitting.  So instead make a runtime_flags thing that we use the
    normal bit operations on that are all atomic so we can keep having our
    no/different locking for the different flags and then make force_compress
    it's own thing so it can be treated normally.  Thanks,
    Signed-off-by: NJosef Bacik <josef@redhat.com>
    72ac3c0d
file.c 48.3 KB