• W
    Btrfs: fix a warning when iput a file · 180589ef
    Wang Shilong 提交于
    See the warning below:
    
    [ 1209.102076]  [<ffffffffa04721b9>] remove_extent_mapping+0x69/0x70 [btrfs]
    [ 1209.102084]  [<ffffffffa0466b06>] btrfs_evict_inode+0x96/0x4d0 [btrfs]
    [ 1209.102089]  [<ffffffff81073010>] ? wake_atomic_t_function+0x40/0x40
    [ 1209.102092]  [<ffffffff8118ab2e>] evict+0x9e/0x190
    [ 1209.102094]  [<ffffffff8118b313>] iput+0xf3/0x180
    [ 1209.102101]  [<ffffffffa0461fd1>] btrfs_run_delayed_iputs+0xb1/0xd0 [btrfs]
    [ 1209.102107]  [<ffffffffa045d358>] __btrfs_end_transaction+0x268/0x350 [btrfs]
    
    clear extent bit here to avoid triggering WARN_ON() in remove_extent_mapping()
    Signed-off-by: NWang Shilong <wangsl.fnst@cn.fujitsu.com>
    Signed-off-by: NJosef Bacik <jbacik@fb.com>
    Signed-off-by: NChris Mason <clm@fb.com>
    180589ef
inode.c 233.2 KB