Displaying 2 results from an estimated 2 matches for "num_requir".
Did you mean:
num_required
2006 Jun 22
3
Partition results based on field
Hello all
I''m using Ferret for a site wide search where I have several kinds of
(similar) objects in a central index (using a "type" field containing
the class name). This works great, and I can search all objects with one
query.
What I''d like to do now is to limit the results so that there will be a
maximum of 10 (or 5 or whatever) results for each type.. I
2008 Jun 24
1
[RFC][PATCH] btrfs orphan code
...[S_IFSOCK >> S_SHIFT] = BTRFS_FT_SOCK,
[S_IFLNK >> S_SHIFT] = BTRFS_FT_SYMLINK,
};
+
+static inline u8 btrfs_inode_type(struct inode *inode)
+{
+ return btrfs_type_by_mode[(inode->i_mode & S_IFMT) >> S_SHIFT];
+}
int btrfs_check_free_space(struct btrfs_root *root, u64 num_required,
int for_del)
@@ -599,6 +604,130 @@ zeroit:
return -EIO;
}
+/*
+ * Adds an unlinked/truncating inode to the hidden orphan dir for this root
+ * so that if something happens and the inode deletion/truncate does not
+ * complete we can pick it back up on the next mount or during the fsc...