diff options
author | Joel Becker <joel.becker@oracle.com> | 2010-03-25 22:09:15 -0400 |
---|---|---|
committer | Tao Ma <tao.ma@oracle.com> | 2010-03-25 22:09:15 -0400 |
commit | 2b6cb576aa80611f1f6a3c88708d1e68a8d97985 (patch) | |
tree | a984f09104970133379e4d370b9f01e7f85c6f9b /fs/ocfs2/suballoc.h | |
parent | ba2066351b630f0205ebf725f5c81a2a07a77cd7 (diff) |
ocfs2: Set suballoc_loc on allocated metadata.
Get the suballoc_loc from ocfs2_claim_new_inode() or
ocfs2_claim_metadata(). Store it on the appropriate field of the block
we just allocated.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/suballoc.h')
-rw-r--r-- | fs/ocfs2/suballoc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/suballoc.h b/fs/ocfs2/suballoc.h index 49b0b22d30cf..a017dd3ee7d9 100644 --- a/fs/ocfs2/suballoc.h +++ b/fs/ocfs2/suballoc.h | |||
@@ -86,6 +86,7 @@ int ocfs2_reserve_clusters(struct ocfs2_super *osb, | |||
86 | int ocfs2_claim_metadata(handle_t *handle, | 86 | int ocfs2_claim_metadata(handle_t *handle, |
87 | struct ocfs2_alloc_context *ac, | 87 | struct ocfs2_alloc_context *ac, |
88 | u32 bits_wanted, | 88 | u32 bits_wanted, |
89 | u64 *suballoc_loc, | ||
89 | u16 *suballoc_bit_start, | 90 | u16 *suballoc_bit_start, |
90 | u32 *num_bits, | 91 | u32 *num_bits, |
91 | u64 *blkno_start); | 92 | u64 *blkno_start); |
@@ -93,6 +94,7 @@ int ocfs2_claim_new_inode(handle_t *handle, | |||
93 | struct inode *dir, | 94 | struct inode *dir, |
94 | struct buffer_head *parent_fe_bh, | 95 | struct buffer_head *parent_fe_bh, |
95 | struct ocfs2_alloc_context *ac, | 96 | struct ocfs2_alloc_context *ac, |
97 | u64 *suballoc_loc, | ||
96 | u16 *suballoc_bit, | 98 | u16 *suballoc_bit, |
97 | u64 *fe_blkno); | 99 | u64 *fe_blkno); |
98 | int ocfs2_claim_clusters(handle_t *handle, | 100 | int ocfs2_claim_clusters(handle_t *handle, |