···11+/* -*- mode: c; c-basic-offset: 8; -*-22+ * vim: noexpandtab sw=8 ts=8 sts=0:33+ *44+ * move_extents.c55+ *66+ * Copyright (C) 2011 Oracle. All rights reserved.77+ *88+ * This program is free software; you can redistribute it and/or99+ * modify it under the terms of the GNU General Public1010+ * License version 2 as published by the Free Software Foundation.1111+ *1212+ * This program is distributed in the hope that it will be useful,1313+ * but WITHOUT ANY WARRANTY; without even the implied warranty of1414+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU1515+ * General Public License for more details.1616+ */1717+#include <linux/fs.h>1818+#include <linux/types.h>1919+#include <linux/mount.h>2020+#include <linux/swap.h>2121+2222+#include <cluster/masklog.h>2323+2424+#include "ocfs2.h"2525+#include "ocfs2_ioctl.h"2626+2727+#include "alloc.h"2828+#include "aops.h"2929+#include "dlmglue.h"3030+#include "extent_map.h"3131+#include "inode.h"3232+#include "journal.h"3333+#include "suballoc.h"3434+#include "uptodate.h"3535+#include "super.h"3636+#include "dir.h"3737+#include "buffer_head_io.h"3838+#include "sysfile.h"3939+#include "suballoc.h"4040+#include "refcounttree.h"4141+#include "move_extents.h"4242+4343+struct ocfs2_move_extents_context {4444+ struct inode *inode;4545+ struct file *file;4646+ int auto_defrag;4747+ int credits;4848+ u32 new_phys_cpos;4949+ u32 clusters_moved;5050+ u64 refcount_loc;5151+ struct ocfs2_move_extents *range;5252+ struct ocfs2_extent_tree et;5353+ struct ocfs2_alloc_context *meta_ac;5454+ struct ocfs2_alloc_context *data_ac;5555+ struct ocfs2_cached_dealloc_ctxt dealloc;5656+};
+20
fs/ocfs2/move_extents.h
···11+/* -*- mode: c; c-basic-offset: 8; -*-22+ * vim: noexpandtab sw=8 ts=8 sts=0:33+ *44+ * move_extents.h55+ *66+ * Copyright (C) 2011 Oracle. All rights reserved.77+ *88+ * This program is free software; you can redistribute it and/or99+ * modify it under the terms of the GNU General Public1010+ * License version 2 as published by the Free Software Foundation.1111+ *1212+ * This program is distributed in the hope that it will be useful,1313+ * but WITHOUT ANY WARRANTY; without even the implied warranty of1414+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU1515+ * General Public License for more details.1616+ */1717+#ifndef OCFS2_MOVE_EXTENTS_H1818+#define OCFS2_MOVE_EXTENTS_H1919+2020+#endif /* OCFS2_MOVE_EXTENTS_H */