Btrfs: Create orphan inode records to prevent lost files after a crash

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Josef Bacik
2008-07-24 12:17:14 -04:00
committed by Chris Mason
parent 33268eaf0b
commit 7b12876623
7 changed files with 322 additions and 5 deletions

View File

@@ -39,6 +39,9 @@ struct btrfs_inode {
struct posix_acl *i_acl;
struct posix_acl *i_default_acl;
/* for keeping track of orphaned inodes */
struct list_head i_orphan;
/*
* transid of the trans_handle that last modified this inode
*/