On Fri, Dec 04, 2015 at 02:37:26PM +0900, Naohiro Aota wrote: > If a file is linked from more than one directory and only one > of the links is corrupted, btrfs check dose not reset the nlink > properly. Actually it can go into infinite loop to link the broken file > into lost+found. > > This patch fix two part of the code. The first one delay the freeing > valid (no error, found inode ref, directory index, and directory > item) backrefs. Freeing valid backrefs earier prevent reset_nlink() to > add back all valid links. > > The second fix is obvious: passing `ref_type' to btrfs_add_link() is just > wrong. It should be `filetype' instead. The current code can break all valid > file links. > > Signed-off-by: Naohiro Aota <na...@elisp.net>
Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html