mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
2a82b8be8a
In media spaces, video is often stored in a frame-per-file format. When dealing with uncompressed realtime HD video streams in this format, it is crucial that files do not get fragmented and that multiple files a placed contiguously on disk. When multiple streams are being ingested and played out at the same time, it is critical that the filesystem does not cross the streams and interleave them together as this creates seek and readahead cache miss latency and prevents both ingest and playout from meeting frame rate targets. This patch set creates a "stream of files" concept into the allocator to place all the data from a single stream contiguously on disk so that RAID array readahead can be used effectively. Each additional stream gets placed in different allocation groups within the filesystem, thereby ensuring that we don't cross any streams. When an AG fills up, we select a new AG for the stream that is not in use. The core of the functionality is the stream tracking - each inode that we create in a directory needs to be associated with the directories' stream. Hence every time we create a file, we look up the directories' stream object and associate the new file with that object. Once we have a stream object for a file, we use the AG that the stream object point to for allocations. If we can't allocate in that AG (e.g. it is full) we move the entire stream to another AG. Other inodes in the same stream are moved to the new AG on their next allocation (i.e. lazy update). Stream objects are kept in a cache and hold a reference on the inode. Hence the inode cannot be reclaimed while there is an outstanding stream reference. This means that on unlink we need to remove the stream association and we also need to flush all the associations on certain events that want to reclaim all unreferenced inodes (e.g. filesystem freeze). SGI-PV: 964469 SGI-Modid: xfs-linux-melb:xfs-kern:29096a Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Barry Naujok <bnaujok@sgi.com> Signed-off-by: Donald Douwsma <donaldd@sgi.com> Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Tim Shimmin <tes@sgi.com> Signed-off-by: Vlad Apostolov <vapo@sgi.com>
122 lines
2.9 KiB
Groff
122 lines
2.9 KiB
Groff
#
|
|
# Copyright (c) 2000-2005 Silicon Graphics, Inc.
|
|
# All Rights Reserved.
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License as
|
|
# published by the Free Software Foundation.
|
|
#
|
|
# This program is distributed in the hope that it would be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write the Free Software Foundation,
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
#
|
|
|
|
EXTRA_CFLAGS += -Ifs/xfs -Ifs/xfs/linux-2.6 -funsigned-char
|
|
|
|
XFS_LINUX := linux-2.6
|
|
|
|
ifeq ($(CONFIG_XFS_DEBUG),y)
|
|
EXTRA_CFLAGS += -g
|
|
endif
|
|
|
|
obj-$(CONFIG_XFS_FS) += xfs.o
|
|
|
|
xfs-$(CONFIG_XFS_QUOTA) += $(addprefix quota/, \
|
|
xfs_dquot.o \
|
|
xfs_dquot_item.o \
|
|
xfs_trans_dquot.o \
|
|
xfs_qm_syscalls.o \
|
|
xfs_qm_bhv.o \
|
|
xfs_qm.o)
|
|
|
|
ifeq ($(CONFIG_XFS_QUOTA),y)
|
|
xfs-$(CONFIG_PROC_FS) += quota/xfs_qm_stats.o
|
|
endif
|
|
|
|
xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
|
|
xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
|
|
xfs-$(CONFIG_PROC_FS) += $(XFS_LINUX)/xfs_stats.o
|
|
xfs-$(CONFIG_SYSCTL) += $(XFS_LINUX)/xfs_sysctl.o
|
|
xfs-$(CONFIG_COMPAT) += $(XFS_LINUX)/xfs_ioctl32.o
|
|
|
|
|
|
xfs-y += xfs_alloc.o \
|
|
xfs_alloc_btree.o \
|
|
xfs_attr.o \
|
|
xfs_attr_leaf.o \
|
|
xfs_behavior.o \
|
|
xfs_bit.o \
|
|
xfs_bmap.o \
|
|
xfs_bmap_btree.o \
|
|
xfs_btree.o \
|
|
xfs_buf_item.o \
|
|
xfs_da_btree.o \
|
|
xfs_dir2.o \
|
|
xfs_dir2_block.o \
|
|
xfs_dir2_data.o \
|
|
xfs_dir2_leaf.o \
|
|
xfs_dir2_node.o \
|
|
xfs_dir2_sf.o \
|
|
xfs_error.o \
|
|
xfs_extfree_item.o \
|
|
xfs_filestream.o \
|
|
xfs_fsops.o \
|
|
xfs_ialloc.o \
|
|
xfs_ialloc_btree.o \
|
|
xfs_iget.o \
|
|
xfs_inode.o \
|
|
xfs_inode_item.o \
|
|
xfs_iocore.o \
|
|
xfs_iomap.o \
|
|
xfs_itable.o \
|
|
xfs_dfrag.o \
|
|
xfs_log.o \
|
|
xfs_log_recover.o \
|
|
xfs_mount.o \
|
|
xfs_mru_cache.o \
|
|
xfs_rename.o \
|
|
xfs_trans.o \
|
|
xfs_trans_ail.o \
|
|
xfs_trans_buf.o \
|
|
xfs_trans_extfree.o \
|
|
xfs_trans_inode.o \
|
|
xfs_trans_item.o \
|
|
xfs_utils.o \
|
|
xfs_vfsops.o \
|
|
xfs_vnodeops.o \
|
|
xfs_rw.o \
|
|
xfs_dmops.o \
|
|
xfs_qmops.o
|
|
|
|
xfs-$(CONFIG_XFS_TRACE) += xfs_dir2_trace.o
|
|
|
|
# Objects in linux/
|
|
xfs-y += $(addprefix $(XFS_LINUX)/, \
|
|
kmem.o \
|
|
xfs_aops.o \
|
|
xfs_buf.o \
|
|
xfs_export.o \
|
|
xfs_file.o \
|
|
xfs_fs_subr.o \
|
|
xfs_globals.o \
|
|
xfs_ioctl.o \
|
|
xfs_iops.o \
|
|
xfs_lrw.o \
|
|
xfs_super.o \
|
|
xfs_vfs.o \
|
|
xfs_vnode.o)
|
|
|
|
# Objects in support/
|
|
xfs-y += $(addprefix support/, \
|
|
debug.o \
|
|
move.o \
|
|
uuid.o)
|
|
|
|
xfs-$(CONFIG_XFS_TRACE) += support/ktrace.o
|
|
|