Merge of master-melb:xfs-cmds:29196a by kenmcd.
Add xfs_metadump.h to Makefile so it's packaged up correctly
xfs_dir2_node.h xfs_dir2_sf.h xfs_dir_leaf.h xfs_dir_sf.h \
xfs_extfree_item.h xfs_fs.h xfs_ialloc.h xfs_ialloc_btree.h \
xfs_imap.h xfs_inode.h xfs_inode_item.h xfs_inum.h \
- xfs_log.h xfs_log_priv.h xfs_log_recover.h xfs_mount.h xfs_quota.h \
- xfs_rtalloc.h xfs_sb.h xfs_trans.h xfs_trans_space.h xfs_types.h
+ xfs_log.h xfs_log_priv.h xfs_log_recover.h xfs_metadata.h \
+ xfs_mount.h xfs_quota.hxfs_rtalloc.h xfs_sb.h \
+ xfs_trans.h xfs_trans_space.h xfs_types.h
HFILES += $(PKG_PLATFORM).h swab.h
PHFILES = darwin.h freebsd.h irix.h linux.h
}
if (!readonly && !inactive && platform_check_ismounted(path, *blockfile, NULL, 1))
return 0;
-
+
if (inactive && check_isactive(path, *blockfile, ((readonly|dangerously)?1:0)))
return 0;
libxfs_physmem(void)
{
return platform_physmem();
-}
\ No newline at end of file
+}
}
}
-static void
+static unsigned int
libxfs_bulkrelse(
struct cache *cache,
struct list_head *list)
{
xfs_buf_t *bp;
+ int count = 0;
if (list_empty(list))
- return;
+ return 0 ;
list_for_each_entry(bp, list, b_node.cn_mru) {
if (bp->b_flags & LIBXFS_B_DIRTY)
libxfs_writebufr(bp);
+ count++;
}
pthread_mutex_lock(&xfs_buf_freelist.cm_mutex);
__list_splice(list, &xfs_buf_freelist.cm_list);
pthread_mutex_unlock(&xfs_buf_freelist.cm_mutex);
+
+ return count;
}
static void