summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2009-08-18 05:22:21 +0200
committerJoel Becker <joel.becker@oracle.com>2009-09-23 05:09:31 +0200
commit555936bfcb1af26c6919d6cedb83710bb03d4322 (patch)
tree8d63ff0c4a0ff9587cb84dcd8ca9333c94d34ff8 /firmware
parentocfs2: Wrap ocfs2_extent_contig in ocfs2_extent_tree. (diff)
downloadlinux-555936bfcb1af26c6919d6cedb83710bb03d4322.tar.xz
linux-555936bfcb1af26c6919d6cedb83710bb03d4322.zip
ocfs2: Abstract extent split process.
ocfs2_mark_extent_written actually does the following things: 1. check the parameters. 2. initialize the left_path and split_rec. 3. call __ocfs2_mark_extent_written. it will do: 1) check the flags of unwritten 2) do the real split work. The whole process is packed tightly somehow. So this patch will abstract 2 different functions so that future b-tree operation can work with it. 1. __ocfs2_split_extent will accept path and split_rec and do the real split work. 2. ocfs2_change_extent_flag will accept a new flag and initialize path and split_rec. So now ocfs2_mark_extent_written will do: 1. check the parameters. 2. call ocfs2_change_extent_flag. 1) initalize the left_path and split_rec. 2) check whether the new flags conflict with the old one. 3) call __ocfs2_split_extent to do the split. Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions