summaryrefslogtreecommitdiff
path: root/fs/nilfs2/cpfile.h
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2012-11-02 13:58:04 (GMT)
committerJosef Bacik <jbacik@fusionio.com>2012-12-12 22:15:30 (GMT)
commit7a9e9987681198c56ac7f165725ca322d7a196e1 (patch)
tree352517134c77a7f0fc64579198326bd73ecb4ae3 /fs/nilfs2/cpfile.h
parenta36cf8b8933e4a7a7f2f2cbc3c70b097e97f7fd1 (diff)
downloadlinux-7a9e9987681198c56ac7f165725ca322d7a196e1.tar.xz
Btrfs: make the scrub page array dynamically allocated
With the modified design (in order to support the devive replace procedure) it is necessary to alloc the page array dynamically. The reason is that pages are reused. At first a page is used for the bio to read the data from the filesystem, then the same page is reused for the bio that writes the data to the target disk. Since the read process and the write process are completely decoupled, this requires a new concept of refcounts and get/put functions for pages, and it requires to use newly created pages for each read bio which are freed after the write operation is finished. Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/nilfs2/cpfile.h')
0 files changed, 0 insertions, 0 deletions