search for: maybe_free_inode_rec

Displaying 2 results from an estimated 2 matches for "maybe_free_inode_rec".

2010 Jun 10
0
missing include from btrfsck.c?
...e to think i know enough to be dangerous (pragmatic) :-D building from git master failed with: .......... .......... gcc -Wp,-MMD,./.btrfsck.o.d,-MT,btrfsck.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -Werror -Os -c btrfsck.c cc1: warnings being treated as errors btrfsck.c: In function ‘maybe_free_inode_rec’: btrfsck.c:323:2: error: implicit declaration of function ‘S_ISDIR’ btrfsck.c:328:2: error: implicit declaration of function ‘S_ISREG’ btrfsck.c:328:2: error: implicit declaration of function ‘S_ISLNK’ make: *** [btrfsck.o] Error 1 grepping the source turned up several other files successfully us...
2013 Oct 22
0
[PATCH] Btrfs-progs: add support for the no holes incompat flag
...-- a/cmds-check.c +++ b/cmds-check.c @@ -50,6 +50,7 @@ static u64 data_bytes_referenced = 0; static int found_old_backref = 0; static LIST_HEAD(duplicate_extents); static int repair = 0; +static int no_holes = 0; struct extent_backref { struct list_head list; @@ -443,8 +444,9 @@ static void maybe_free_inode_rec(struct cache_tree *inode_cache, rec->errors |= I_ERR_FILE_NBYTES_WRONG; if (rec->extent_start == (u64)-1 || rec->extent_start > 0) rec->first_extent_gap = 0; - if (rec->nlink > 0 && (rec->extent_end < rec->isize || - rec->first_extent_gap &l...