commit | 5eda7b5e9b0bed864dd18284c7df9b3c8207dad7 | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Fri Jun 22 14:16:25 2007 -0400 |
committer | David Woodhouse <dwmw2@hera.kernel.org> | Fri Jun 22 14:16:25 2007 -0400 |
tree | 9efe48de46e77f2b7b97a2ce3ee93c9da6451671 | |
parent | 54aa1f4dfdacd60a19c4471220b24e581be6f774 [diff] [blame] |
Btrfs: Add the ability to find and remove dead roots after a crash. Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 6d031da..9d2a0a3 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c
@@ -2028,6 +2028,8 @@ btrfs_set_root_blocknr(&root_item, bh_blocknr(subvol)); btrfs_set_root_refs(&root_item, 1); + memset(&root_item.drop_progress, 0, sizeof(root_item.drop_progress)); + root_item.drop_level = 0; brelse(subvol); subvol = NULL;