diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-01-16 14:32:23 -0500 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-04-26 17:44:03 -0400 |
commit | dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 (patch) | |
tree | 226d725f8199907cea2433d1d183b01e51d9bc55 /fs/ocfs2/namei.c | |
parent | 6f16bf655c5795586dd2ac96a7c70e0b9a378746 (diff) |
ocfs2: sparse b-tree support
Introduce tree rotations into the b-tree code. This will allow ocfs2 to
support sparse files. Much of the added code is designed to be generic (in
the ocfs2 sense) so that it can later be re-used to implement large
extended attributes.
This patch only adds the rotation code and does minimal updates to callers
of the extent api.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/namei.c')
-rw-r--r-- | fs/ocfs2/namei.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c index a93c15fdcef3..d65fef4a8bd8 100644 --- a/fs/ocfs2/namei.c +++ b/fs/ocfs2/namei.c | |||
@@ -1671,8 +1671,11 @@ static int ocfs2_symlink(struct inode *dir, | |||
1671 | inode->i_rdev = 0; | 1671 | inode->i_rdev = 0; |
1672 | newsize = l - 1; | 1672 | newsize = l - 1; |
1673 | if (l > ocfs2_fast_symlink_chars(sb)) { | 1673 | if (l > ocfs2_fast_symlink_chars(sb)) { |
1674 | u32 offset = 0; | ||
1675 | |||
1674 | inode->i_op = &ocfs2_symlink_inode_operations; | 1676 | inode->i_op = &ocfs2_symlink_inode_operations; |
1675 | status = ocfs2_do_extend_allocation(osb, inode, 1, new_fe_bh, | 1677 | status = ocfs2_do_extend_allocation(osb, inode, &offset, 1, |
1678 | new_fe_bh, | ||
1676 | handle, data_ac, NULL, | 1679 | handle, data_ac, NULL, |
1677 | NULL); | 1680 | NULL); |
1678 | if (status < 0) { | 1681 | if (status < 0) { |