aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2009-10-08 11:27:10 -0400
committerChris Mason <chris.mason@oracle.com>2009-10-08 15:11:49 -0400
commita791e35e12ff672e8a0e140abeeaf900c3b2ea77 (patch)
treef03b99451619c0425f3c93fbef3940c2b08c1bd3 /fs/btrfs/extent_io.h
parent1cdda9b81ac0e6ee986f034fa02f221679e1c11a (diff)
Btrfs: cleanup extent_clear_unlock_delalloc flags
extent_clear_unlock_delalloc has a growing set of ugly parameters that is very difficult to read and maintain. This switches to a flag field and well named flag defines. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r--fs/btrfs/extent_io.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index 4794ec891fed..41d2a47ecf38 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -25,6 +25,15 @@
25#define EXTENT_BUFFER_BLOCKING 1 25#define EXTENT_BUFFER_BLOCKING 1
26#define EXTENT_BUFFER_DIRTY 2 26#define EXTENT_BUFFER_DIRTY 2
27 27
28/* these are flags for extent_clear_unlock_delalloc */
29#define EXTENT_CLEAR_UNLOCK_PAGE 0x1
30#define EXTENT_CLEAR_UNLOCK 0x2
31#define EXTENT_CLEAR_DELALLOC 0x4
32#define EXTENT_CLEAR_DIRTY 0x8
33#define EXTENT_SET_WRITEBACK 0x10
34#define EXTENT_END_WRITEBACK 0x20
35#define EXTENT_SET_PRIVATE2 0x40
36
28/* 37/*
29 * page->private values. Every page that is controlled by the extent 38 * page->private values. Every page that is controlled by the extent
30 * map has page->private set to one. 39 * map has page->private set to one.
@@ -288,10 +297,5 @@ int extent_range_uptodate(struct extent_io_tree *tree,
288int extent_clear_unlock_delalloc(struct inode *inode, 297int extent_clear_unlock_delalloc(struct inode *inode,
289 struct extent_io_tree *tree, 298 struct extent_io_tree *tree,
290 u64 start, u64 end, struct page *locked_page, 299 u64 start, u64 end, struct page *locked_page,
291 int unlock_page, 300 unsigned long op);
292 int clear_unlock,
293 int clear_delalloc, int clear_dirty,
294 int set_writeback,
295 int end_writeback,
296 int set_private2);
297#endif 301#endif