2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2008-08-05 13:05:02 -04:00
|
|
|
|
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files. percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.
percpu.h -> slab.h dependency is about to be removed. Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability. As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.
http://userweb.kernel.org/~tj/misc/slabh-sweep.py
The script does the followings.
* Scan files for gfp and slab usages and update includes such that
only the necessary includes are there. ie. if only gfp is used,
gfp.h, if slab is used, slab.h.
* When the script inserts a new include, it looks at the include
blocks and try to put the new include such that its order conforms
to its surrounding. It's put in the include block which contains
core kernel includes, in the same order that the rest are ordered -
alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
doesn't seem to be any matching order.
* If the script can't find a place to put a new include (mostly
because the file doesn't have fitting include block), it prints out
an error message indicating which .h file needs to be added to the
file.
The conversion was done in the following steps.
1. The initial automatic conversion of all .c files updated slightly
over 4000 files, deleting around 700 includes and adding ~480 gfp.h
and ~3000 slab.h inclusions. The script emitted errors for ~400
files.
2. Each error was manually checked. Some didn't need the inclusion,
some needed manual addition while adding it to implementation .h or
embedding .c file was more appropriate for others. This step added
inclusions to around 150 files.
3. The script was run again and the output was compared to the edits
from #2 to make sure no file was left behind.
4. Several build tests were done and a couple of problems were fixed.
e.g. lib/decompress_*.c used malloc/free() wrappers around slab
APIs requiring slab.h to be added manually.
5. The script was run on all .h files but without automatically
editing them as sprinkling gfp.h and slab.h inclusions around .h
files could easily lead to inclusion dependency hell. Most gfp.h
inclusion directives were ignored as stuff from gfp.h was usually
wildly available and often used in preprocessor macros. Each
slab.h inclusion directive was examined and added manually as
necessary.
6. percpu.h was updated not to include slab.h.
7. Build test were done on the following configurations and failures
were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
distributed build env didn't work with gcov compiles) and a few
more options had to be turned off depending on archs to make things
build (like ipr on powerpc/64 which failed due to missing writeq).
* x86 and x86_64 UP and SMP allmodconfig and a custom test config.
* powerpc and powerpc64 SMP allmodconfig
* sparc and sparc64 SMP allmodconfig
* ia64 SMP allmodconfig
* s390 SMP allmodconfig
* alpha SMP allmodconfig
* um on x86_64 SMP allmodconfig
8. percpu.h modifications were reverted so that it could be applied as
a separate patch and serve as bisection point.
Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.
Signed-off-by: Tejun Heo <tj@kernel.org>
Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
2010-03-24 17:04:11 +09:00
|
|
|
|
2011-03-24 10:24:28 +00:00
|
|
|
|
2012-07-25 17:35:53 +02:00
|
|
|
|
2013-01-29 06:04:50 +00:00
|
|
|
|
2008-11-20 10:22:27 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-25 16:01:30 -04:00
|
|
|
|
Btrfs: Cache free inode numbers in memory
Currently btrfs stores the highest objectid of the fs tree, and it always
returns (highest+1) inode number when we create a file, so inode numbers
won't be reclaimed when we delete files, so we'll run out of inode numbers
as we keep create/delete files in 32bits machines.
This fixes it, and it works similarly to how we cache free space in block
cgroups.
We start a kernel thread to read the file tree. By scanning inode items,
we know which chunks of inode numbers are free, and we cache them in
an rb-tree.
Because we are searching the commit root, we have to carefully handle the
cross-transaction case.
The rb-tree is a hybrid extent+bitmap tree, so if we have too many small
chunks of inode numbers, we'll use bitmaps. Initially we allow 16K ram
of extents, and a bitmap will be used if we exceed this threshold. The
extents threshold is adjusted in runtime.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
2011-04-20 10:06:11 +08:00
|
|
|
|
2011-07-07 16:48:38 +02:00
|
|
|
|
2012-06-04 14:03:51 -04:00
|
|
|
|
2012-07-25 23:19:24 +02:00
|
|
|
|
2012-11-06 15:08:53 +01:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-15 03:03:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-27 11:01:30 -04:00
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-06-11 11:13:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
2011-09-27 11:01:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-11 08:33:50 -06:00
|
|
|
|
2011-09-27 11:01:30 -04:00
|
|
|
|
2012-09-11 08:33:50 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Btrfs: Per file/directory controls for COW and compression
Data compression and data cow are controlled across the entire FS by mount
options right now. ioctls are needed to set this on a per file or per
directory basis. This has been proposed previously, but VFS developers
wanted us to use generic ioctls rather than btrfs-specific ones.
According to Chris's comment, there should be just one true compression
method(probably LZO) stored in the super. However, before this, we would
wait for that one method is stable enough to be adopted into the super.
So I list it as a long term goal, and just store it in ram today.
After applying this patch, we can use the generic "FS_IOC_SETFLAGS" ioctl to
control file and directory's datacow and compression attribute.
NOTE:
- The compression type is selected by such rules:
If we mount btrfs with compress options, ie, zlib/lzo, the type is it.
Otherwise, we'll use the default compress type (zlib today).
v1->v2:
- rebase to the latest btrfs.
v2->v3:
- fix a problem, i.e. when a file is set NOCOW via mount option, then this NOCOW
will be screwed by inheritance from parent directory.
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2011-03-22 10:12:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-15 03:02:49 +00:00
|
|
|
|
|
|
|
|
|
Btrfs: Per file/directory controls for COW and compression
Data compression and data cow are controlled across the entire FS by mount
options right now. ioctls are needed to set this on a per file or per
directory basis. This has been proposed previously, but VFS developers
wanted us to use generic ioctls rather than btrfs-specific ones.
According to Chris's comment, there should be just one true compression
method(probably LZO) stored in the super. However, before this, we would
wait for that one method is stable enough to be adopted into the super.
So I list it as a long term goal, and just store it in ram today.
After applying this patch, we can use the generic "FS_IOC_SETFLAGS" ioctl to
control file and directory's datacow and compression attribute.
NOTE:
- The compression type is selected by such rules:
If we mount btrfs with compress options, ie, zlib/lzo, the type is it.
Otherwise, we'll use the default compress type (zlib today).
v1->v2:
- rebase to the latest btrfs.
v2->v3:
- fix a problem, i.e. when a file is set NOCOW via mount option, then this NOCOW
will be screwed by inheritance from parent directory.
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2011-03-22 10:12:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-29 13:36:45 +08:00
|
|
|
|
|
|
|
|
|
btrfs: allow setting NOCOW for a zero sized file via ioctl
Hi,
the patch si simple, but it has user visible impact and I'm not quite sure how
to resolve it.
In short, $subj says it, chattr -C supports it and we want to use it.
The conditions that acutally allow to change the NOCOW flag are clear. What if
I try to set the flag on a file that is not empty? Options:
1) whole ioctl will fail, EINVAL
2.1) ioctl will succeed, the NOCOW flag will be silently removed, but the file
will stay COW-ed and checksummed
2.2) ioctl will succeed, flag will not be removed and a syslog message will
warn that the COW flag has not been changed
2.2.1) dtto, no syslog message
Man page of chattr states that
"If it is set on a file which already has data blocks, it is undefined when
the blocks assigned to the file will be fully stable."
Yes, it's undefined and with current implementation it'll never happen. So from
this end, the user cannot expect anything. I'm trying to find a reasonable
behaviour, so that a command like 'chattr -R -aijS +C' to tweak a broad set of
flags in a deep directory does not fail unnecessarily and does not pollute the
log.
My personal preference is 2.2.1, but my dev's oppinion is skewed, not counting
the fact that I know the code and otherwise would look there before consulting
the documentation.
The patch implements 2.2.1.
david
-------------8<-------------------
From: David Sterba <dsterba@suse.cz>
It's safe to turn off checksums for a zero sized file.
http://thread.gmane.org/gmane.comp.file-systems.btrfs/18030
"We cannot switch on NODATASUM for a file that already has extents that
are checksummed. The invariant here is that either all the extents or
none are checksummed.
Theoretically it's possible to add/remove all checksums from a given
file, but it's a potentially longtime operation, the file has to be in
some intermediate state where the checksums partially exist but have to
be ignored (for the csum->nocsum) until the file is fully converted,
this brings more special cases to extent handling, it has to survive
power failure and remain consistent, and probably needs to be restarted
after next mount."
Signed-off-by: David Sterba <dsterba@suse.cz>
2012-09-07 05:56:55 -06:00
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
2010-12-20 16:04:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Btrfs: Per file/directory controls for COW and compression
Data compression and data cow are controlled across the entire FS by mount
options right now. ioctls are needed to set this on a per file or per
directory basis. This has been proposed previously, but VFS developers
wanted us to use generic ioctls rather than btrfs-specific ones.
According to Chris's comment, there should be just one true compression
method(probably LZO) stored in the super. However, before this, we would
wait for that one method is stable enough to be adopted into the super.
So I list it as a long term goal, and just store it in ram today.
After applying this patch, we can use the generic "FS_IOC_SETFLAGS" ioctl to
control file and directory's datacow and compression attribute.
NOTE:
- The compression type is selected by such rules:
If we mount btrfs with compress options, ie, zlib/lzo, the type is it.
Otherwise, we'll use the default compress type (zlib today).
v1->v2:
- rebase to the latest btrfs.
v2->v3:
- fix a problem, i.e. when a file is set NOCOW via mount option, then this NOCOW
will be screwed by inheritance from parent directory.
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2011-03-22 10:12:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
2011-03-23 16:43:26 -07:00
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
2012-06-12 16:20:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
2011-12-29 13:36:45 +08:00
|
|
|
|
|
|
|
|
|
btrfs: allow setting NOCOW for a zero sized file via ioctl
Hi,
the patch si simple, but it has user visible impact and I'm not quite sure how
to resolve it.
In short, $subj says it, chattr -C supports it and we want to use it.
The conditions that acutally allow to change the NOCOW flag are clear. What if
I try to set the flag on a file that is not empty? Options:
1) whole ioctl will fail, EINVAL
2.1) ioctl will succeed, the NOCOW flag will be silently removed, but the file
will stay COW-ed and checksummed
2.2) ioctl will succeed, flag will not be removed and a syslog message will
warn that the COW flag has not been changed
2.2.1) dtto, no syslog message
Man page of chattr states that
"If it is set on a file which already has data blocks, it is undefined when
the blocks assigned to the file will be fully stable."
Yes, it's undefined and with current implementation it'll never happen. So from
this end, the user cannot expect anything. I'm trying to find a reasonable
behaviour, so that a command like 'chattr -R -aijS +C' to tweak a broad set of
flags in a deep directory does not fail unnecessarily and does not pollute the
log.
My personal preference is 2.2.1, but my dev's oppinion is skewed, not counting
the fact that I know the code and otherwise would look there before consulting
the documentation.
The patch implements 2.2.1.
david
-------------8<-------------------
From: David Sterba <dsterba@suse.cz>
It's safe to turn off checksums for a zero sized file.
http://thread.gmane.org/gmane.comp.file-systems.btrfs/18030
"We cannot switch on NODATASUM for a file that already has extents that
are checksummed. The invariant here is that either all the extents or
none are checksummed.
Theoretically it's possible to add/remove all checksums from a given
file, but it's a potentially longtime operation, the file has to be in
some intermediate state where the checksums partially exist but have to
be ignored (for the csum->nocsum) until the file is fully converted,
this brings more special cases to extent handling, it has to survive
power failure and remain consistent, and probably needs to be restarted
after next mount."
Signed-off-by: David Sterba <dsterba@suse.cz>
2012-09-07 05:56:55 -06:00
|
|
|
|
2011-12-29 13:36:45 +08:00
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
btrfs: allow setting NOCOW for a zero sized file via ioctl
Hi,
the patch si simple, but it has user visible impact and I'm not quite sure how
to resolve it.
In short, $subj says it, chattr -C supports it and we want to use it.
The conditions that acutally allow to change the NOCOW flag are clear. What if
I try to set the flag on a file that is not empty? Options:
1) whole ioctl will fail, EINVAL
2.1) ioctl will succeed, the NOCOW flag will be silently removed, but the file
will stay COW-ed and checksummed
2.2) ioctl will succeed, flag will not be removed and a syslog message will
warn that the COW flag has not been changed
2.2.1) dtto, no syslog message
Man page of chattr states that
"If it is set on a file which already has data blocks, it is undefined when
the blocks assigned to the file will be fully stable."
Yes, it's undefined and with current implementation it'll never happen. So from
this end, the user cannot expect anything. I'm trying to find a reasonable
behaviour, so that a command like 'chattr -R -aijS +C' to tweak a broad set of
flags in a deep directory does not fail unnecessarily and does not pollute the
log.
My personal preference is 2.2.1, but my dev's oppinion is skewed, not counting
the fact that I know the code and otherwise would look there before consulting
the documentation.
The patch implements 2.2.1.
david
-------------8<-------------------
From: David Sterba <dsterba@suse.cz>
It's safe to turn off checksums for a zero sized file.
http://thread.gmane.org/gmane.comp.file-systems.btrfs/18030
"We cannot switch on NODATASUM for a file that already has extents that
are checksummed. The invariant here is that either all the extents or
none are checksummed.
Theoretically it's possible to add/remove all checksums from a given
file, but it's a potentially longtime operation, the file has to be in
some intermediate state where the checksums partially exist but have to
be ignored (for the csum->nocsum) until the file is fully converted,
this brings more special cases to extent handling, it has to survive
power failure and remain consistent, and probably needs to be restarted
after next mount."
Signed-off-by: David Sterba <dsterba@suse.cz>
2012-09-07 05:56:55 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
Btrfs: Per file/directory controls for COW and compression
Data compression and data cow are controlled across the entire FS by mount
options right now. ioctls are needed to set this on a per file or per
directory basis. This has been proposed previously, but VFS developers
wanted us to use generic ioctls rather than btrfs-specific ones.
According to Chris's comment, there should be just one true compression
method(probably LZO) stored in the super. However, before this, we would
wait for that one method is stable enough to be adopted into the super.
So I list it as a long term goal, and just store it in ram today.
After applying this patch, we can use the generic "FS_IOC_SETFLAGS" ioctl to
control file and directory's datacow and compression attribute.
NOTE:
- The compression type is selected by such rules:
If we mount btrfs with compress options, ie, zlib/lzo, the type is it.
Otherwise, we'll use the default compress type (zlib today).
v1->v2:
- rebase to the latest btrfs.
v2->v3:
- fix a problem, i.e. when a file is set NOCOW via mount option, then this NOCOW
will be screwed by inheritance from parent directory.
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2011-03-22 10:12:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-15 03:03:17 +00:00
|
|
|
|
|
|
|
|
|
Btrfs: Per file/directory controls for COW and compression
Data compression and data cow are controlled across the entire FS by mount
options right now. ioctls are needed to set this on a per file or per
directory basis. This has been proposed previously, but VFS developers
wanted us to use generic ioctls rather than btrfs-specific ones.
According to Chris's comment, there should be just one true compression
method(probably LZO) stored in the super. However, before this, we would
wait for that one method is stable enough to be adopted into the super.
So I list it as a long term goal, and just store it in ram today.
After applying this patch, we can use the generic "FS_IOC_SETFLAGS" ioctl to
control file and directory's datacow and compression attribute.
NOTE:
- The compression type is selected by such rules:
If we mount btrfs with compress options, ie, zlib/lzo, the type is it.
Otherwise, we'll use the default compress type (zlib today).
v1->v2:
- rebase to the latest btrfs.
v2->v3:
- fix a problem, i.e. when a file is set NOCOW via mount option, then this NOCOW
will be screwed by inheritance from parent directory.
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2011-03-22 10:12:20 +00:00
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
2011-12-29 13:39:50 +08:00
|
|
|
|
2011-12-29 13:36:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
2011-12-14 20:12:02 -05:00
|
|
|
|
2012-04-05 15:03:02 -04:00
|
|
|
|
2011-12-14 20:12:02 -05:00
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-29 13:36:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-12 16:20:32 +02:00
|
|
|
|
2011-02-24 09:38:16 +00:00
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2011-03-24 10:24:28 +00:00
|
|
|
|
|
|
|
|
|
2011-11-17 15:40:49 -05:00
|
|
|
|
2011-03-24 10:24:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-17 15:40:49 -05:00
|
|
|
|
2011-03-24 10:24:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-20 10:09:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-24 10:24:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-20 10:09:16 +00:00
|
|
|
|
2011-09-05 16:34:54 +02:00
|
|
|
|
2011-03-24 10:24:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-10-16 09:34:36 +00:00
|
|
|
|
|
|
|
|
|
2011-09-05 16:34:54 +02:00
|
|
|
|
2011-03-24 10:24:28 +00:00
|
|
|
|
2011-09-05 16:34:54 +02:00
|
|
|
|
2011-03-24 10:24:28 +00:00
|
|
|
|
2011-11-17 15:40:49 -05:00
|
|
|
|
2011-03-24 10:24:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
2010-10-29 15:41:32 -04:00
|
|
|
|
2011-09-14 15:58:21 +02:00
|
|
|
|
2013-02-07 06:02:44 +00:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
2012-07-25 17:35:53 +02:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
2012-07-25 17:35:53 +02:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
Btrfs: Cache free inode numbers in memory
Currently btrfs stores the highest objectid of the fs tree, and it always
returns (highest+1) inode number when we create a file, so inode numbers
won't be reclaimed when we delete files, so we'll run out of inode numbers
as we keep create/delete files in 32bits machines.
This fixes it, and it works similarly to how we cache free space in block
cgroups.
We start a kernel thread to read the file tree. By scanning inode items,
we know which chunks of inode numbers are free, and we cache them in
an rb-tree.
Because we are searching the commit root, we have to carefully handle the
cross-transaction case.
The rb-tree is a hybrid extent+bitmap tree, so if we have too many small
chunks of inode numbers, we'll use bitmaps. Initially we allow 16K ram
of extents, and a bitmap will be used if we exceed this threshold. The
extents threshold is adjusted in runtime.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
2011-04-20 10:06:11 +08:00
|
|
|
|
2011-07-16 21:38:06 -04:00
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
2010-11-20 09:48:00 +00:00
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
2009-09-11 16:12:44 -04:00
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
|
|
|
|
|
2009-09-11 16:12:44 -04:00
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2013-02-07 06:02:44 +00:00
|
|
|
|
2011-09-14 15:58:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Btrfs: Mixed back reference (FORWARD ROLLING FORMAT CHANGE)
This commit introduces a new kind of back reference for btrfs metadata.
Once a filesystem has been mounted with this commit, IT WILL NO LONGER
BE MOUNTABLE BY OLDER KERNELS.
When a tree block in subvolume tree is cow'd, the reference counts of all
extents it points to are increased by one. At transaction commit time,
the old root of the subvolume is recorded in a "dead root" data structure,
and the btree it points to is later walked, dropping reference counts
and freeing any blocks where the reference count goes to 0.
The increments done during cow and decrements done after commit cancel out,
and the walk is a very expensive way to go about freeing the blocks that
are no longer referenced by the new btree root. This commit reduces the
transaction overhead by avoiding the need for dead root records.
When a non-shared tree block is cow'd, we free the old block at once, and the
new block inherits old block's references. When a tree block with reference
count > 1 is cow'd, we increase the reference counts of all extents
the new block points to by one, and decrease the old block's reference count by
one.
This dead tree avoidance code removes the need to modify the reference
counts of lower level extents when a non-shared tree block is cow'd.
But we still need to update back ref for all pointers in the block.
This is because the location of the block is recorded in the back ref
item.
We can solve this by introducing a new type of back ref. The new
back ref provides information about pointer's key, level and in which
tree the pointer lives. This information allow us to find the pointer
by searching the tree. The shortcoming of the new back ref is that it
only works for pointers in tree blocks referenced by their owner trees.
This is mostly a problem for snapshots, where resolving one of these
fuzzy back references would be O(number_of_snapshots) and quite slow.
The solution used here is to use the fuzzy back references in the common
case where a given tree block is only referenced by one root,
and use the full back references when multiple roots have a reference
on a given block.
This commit adds per subvolume red-black tree to keep trace of cached
inodes. The red-black tree helps the balancing code to find cached
inodes whose inode numbers within a given range.
This commit improves the balancing code by introducing several data
structures to keep the state of balancing. The most important one
is the back ref cache. It caches how the upper level tree blocks are
referenced. This greatly reduce the overhead of checking back ref.
The improved balancing code scales significantly better with a large
number of snapshots.
This is a very large commit and was written in a number of
pieces. But, they depend heavily on the disk format change and were
squashed together to make sure git bisect didn't end up in a
bad state wrt space balancing or the format change.
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2009-06-10 10:45:14 -04:00
|
|
|
|
2012-05-16 17:04:52 +02:00
|
|
|
|
2008-07-24 12:17:14 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
Btrfs: Mixed back reference (FORWARD ROLLING FORMAT CHANGE)
This commit introduces a new kind of back reference for btrfs metadata.
Once a filesystem has been mounted with this commit, IT WILL NO LONGER
BE MOUNTABLE BY OLDER KERNELS.
When a tree block in subvolume tree is cow'd, the reference counts of all
extents it points to are increased by one. At transaction commit time,
the old root of the subvolume is recorded in a "dead root" data structure,
and the btree it points to is later walked, dropping reference counts
and freeing any blocks where the reference count goes to 0.
The increments done during cow and decrements done after commit cancel out,
and the walk is a very expensive way to go about freeing the blocks that
are no longer referenced by the new btree root. This commit reduces the
transaction overhead by avoiding the need for dead root records.
When a non-shared tree block is cow'd, we free the old block at once, and the
new block inherits old block's references. When a tree block with reference
count > 1 is cow'd, we increase the reference counts of all extents
the new block points to by one, and decrease the old block's reference count by
one.
This dead tree avoidance code removes the need to modify the reference
counts of lower level extents when a non-shared tree block is cow'd.
But we still need to update back ref for all pointers in the block.
This is because the location of the block is recorded in the back ref
item.
We can solve this by introducing a new type of back ref. The new
back ref provides information about pointer's key, level and in which
tree the pointer lives. This information allow us to find the pointer
by searching the tree. The shortcoming of the new back ref is that it
only works for pointers in tree blocks referenced by their owner trees.
This is mostly a problem for snapshots, where resolving one of these
fuzzy back references would be O(number_of_snapshots) and quite slow.
The solution used here is to use the fuzzy back references in the common
case where a given tree block is only referenced by one root,
and use the full back references when multiple roots have a reference
on a given block.
This commit adds per subvolume red-black tree to keep trace of cached
inodes. The red-black tree helps the balancing code to find cached
inodes whose inode numbers within a given range.
This commit improves the balancing code by introducing several data
structures to keep the state of balancing. The most important one
is the back ref cache. It caches how the upper level tree blocks are
referenced. This greatly reduce the overhead of checking back ref.
The improved balancing code scales significantly better with a large
number of snapshots.
This is a very large commit and was written in a number of
pieces. But, they depend heavily on the disk format change and were
squashed together to make sure git bisect didn't end up in a
bad state wrt space balancing or the format change.
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2009-06-10 10:45:14 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
Btrfs: Mixed back reference (FORWARD ROLLING FORMAT CHANGE)
This commit introduces a new kind of back reference for btrfs metadata.
Once a filesystem has been mounted with this commit, IT WILL NO LONGER
BE MOUNTABLE BY OLDER KERNELS.
When a tree block in subvolume tree is cow'd, the reference counts of all
extents it points to are increased by one. At transaction commit time,
the old root of the subvolume is recorded in a "dead root" data structure,
and the btree it points to is later walked, dropping reference counts
and freeing any blocks where the reference count goes to 0.
The increments done during cow and decrements done after commit cancel out,
and the walk is a very expensive way to go about freeing the blocks that
are no longer referenced by the new btree root. This commit reduces the
transaction overhead by avoiding the need for dead root records.
When a non-shared tree block is cow'd, we free the old block at once, and the
new block inherits old block's references. When a tree block with reference
count > 1 is cow'd, we increase the reference counts of all extents
the new block points to by one, and decrease the old block's reference count by
one.
This dead tree avoidance code removes the need to modify the reference
counts of lower level extents when a non-shared tree block is cow'd.
But we still need to update back ref for all pointers in the block.
This is because the location of the block is recorded in the back ref
item.
We can solve this by introducing a new type of back ref. The new
back ref provides information about pointer's key, level and in which
tree the pointer lives. This information allow us to find the pointer
by searching the tree. The shortcoming of the new back ref is that it
only works for pointers in tree blocks referenced by their owner trees.
This is mostly a problem for snapshots, where resolving one of these
fuzzy back references would be O(number_of_snapshots) and quite slow.
The solution used here is to use the fuzzy back references in the common
case where a given tree block is only referenced by one root,
and use the full back references when multiple roots have a reference
on a given block.
This commit adds per subvolume red-black tree to keep trace of cached
inodes. The red-black tree helps the balancing code to find cached
inodes whose inode numbers within a given range.
This commit improves the balancing code by introducing several data
structures to keep the state of balancing. The most important one
is the back ref cache. It caches how the upper level tree blocks are
referenced. This greatly reduce the overhead of checking back ref.
The improved balancing code scales significantly better with a large
number of snapshots.
This is a very large commit and was written in a number of
pieces. But, they depend heavily on the disk format change and were
squashed together to make sure git bisect didn't end up in a
bad state wrt space balancing or the format change.
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2009-06-10 10:45:14 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Btrfs: Mixed back reference (FORWARD ROLLING FORMAT CHANGE)
This commit introduces a new kind of back reference for btrfs metadata.
Once a filesystem has been mounted with this commit, IT WILL NO LONGER
BE MOUNTABLE BY OLDER KERNELS.
When a tree block in subvolume tree is cow'd, the reference counts of all
extents it points to are increased by one. At transaction commit time,
the old root of the subvolume is recorded in a "dead root" data structure,
and the btree it points to is later walked, dropping reference counts
and freeing any blocks where the reference count goes to 0.
The increments done during cow and decrements done after commit cancel out,
and the walk is a very expensive way to go about freeing the blocks that
are no longer referenced by the new btree root. This commit reduces the
transaction overhead by avoiding the need for dead root records.
When a non-shared tree block is cow'd, we free the old block at once, and the
new block inherits old block's references. When a tree block with reference
count > 1 is cow'd, we increase the reference counts of all extents
the new block points to by one, and decrease the old block's reference count by
one.
This dead tree avoidance code removes the need to modify the reference
counts of lower level extents when a non-shared tree block is cow'd.
But we still need to update back ref for all pointers in the block.
This is because the location of the block is recorded in the back ref
item.
We can solve this by introducing a new type of back ref. The new
back ref provides information about pointer's key, level and in which
tree the pointer lives. This information allow us to find the pointer
by searching the tree. The shortcoming of the new back ref is that it
only works for pointers in tree blocks referenced by their owner trees.
This is mostly a problem for snapshots, where resolving one of these
fuzzy back references would be O(number_of_snapshots) and quite slow.
The solution used here is to use the fuzzy back references in the common
case where a given tree block is only referenced by one root,
and use the full back references when multiple roots have a reference
on a given block.
This commit adds per subvolume red-black tree to keep trace of cached
inodes. The red-black tree helps the balancing code to find cached
inodes whose inode numbers within a given range.
This commit improves the balancing code by introducing several data
structures to keep the state of balancing. The most important one
is the back ref cache. It caches how the upper level tree blocks are
referenced. This greatly reduce the overhead of checking back ref.
The improved balancing code scales significantly better with a large
number of snapshots.
This is a very large commit and was written in a number of
pieces. But, they depend heavily on the disk format change and were
squashed together to make sure git bisect didn't end up in a
bad state wrt space balancing or the format change.
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2009-06-10 10:45:14 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2012-07-25 17:35:53 +02:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-09 11:46:29 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2011-03-28 02:01:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2008-10-29 14:49:05 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2009-11-12 09:36:50 +00:00
|
|
|
|
2008-10-30 14:20:02 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-07-25 17:35:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-30 02:10:44 -06:00
|
|
|
|
2012-07-25 17:35:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2008-06-25 16:01:30 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Btrfs: Mixed back reference (FORWARD ROLLING FORMAT CHANGE)
This commit introduces a new kind of back reference for btrfs metadata.
Once a filesystem has been mounted with this commit, IT WILL NO LONGER
BE MOUNTABLE BY OLDER KERNELS.
When a tree block in subvolume tree is cow'd, the reference counts of all
extents it points to are increased by one. At transaction commit time,
the old root of the subvolume is recorded in a "dead root" data structure,
and the btree it points to is later walked, dropping reference counts
and freeing any blocks where the reference count goes to 0.
The increments done during cow and decrements done after commit cancel out,
and the walk is a very expensive way to go about freeing the blocks that
are no longer referenced by the new btree root. This commit reduces the
transaction overhead by avoiding the need for dead root records.
When a non-shared tree block is cow'd, we free the old block at once, and the
new block inherits old block's references. When a tree block with reference
count > 1 is cow'd, we increase the reference counts of all extents
the new block points to by one, and decrease the old block's reference count by
one.
This dead tree avoidance code removes the need to modify the reference
counts of lower level extents when a non-shared tree block is cow'd.
But we still need to update back ref for all pointers in the block.
This is because the location of the block is recorded in the back ref
item.
We can solve this by introducing a new type of back ref. The new
back ref provides information about pointer's key, level and in which
tree the pointer lives. This information allow us to find the pointer
by searching the tree. The shortcoming of the new back ref is that it
only works for pointers in tree blocks referenced by their owner trees.
This is mostly a problem for snapshots, where resolving one of these
fuzzy back references would be O(number_of_snapshots) and quite slow.
The solution used here is to use the fuzzy back references in the common
case where a given tree block is only referenced by one root,
and use the full back references when multiple roots have a reference
on a given block.
This commit adds per subvolume red-black tree to keep trace of cached
inodes. The red-black tree helps the balancing code to find cached
inodes whose inode numbers within a given range.
This commit improves the balancing code by introducing several data
structures to keep the state of balancing. The most important one
is the back ref cache. It caches how the upper level tree blocks are
referenced. This greatly reduce the overhead of checking back ref.
The improved balancing code scales significantly better with a large
number of snapshots.
This is a very large commit and was written in a number of
pieces. But, they depend heavily on the disk format change and were
squashed together to make sure git bisect didn't end up in a
bad state wrt space balancing or the format change.
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2009-06-10 10:45:14 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-11 15:26:06 -04:00
|
|
|
|
2011-07-26 11:32:23 -07:00
|
|
|
|
|
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
2011-07-26 11:32:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
|
|
|
|
|
btrfs: implement delayed inode items operation
Changelog V5 -> V6:
- Fix oom when the memory load is high, by storing the delayed nodes into the
root's radix tree, and letting btrfs inodes go.
Changelog V4 -> V5:
- Fix the race on adding the delayed node to the inode, which is spotted by
Chris Mason.
- Merge Chris Mason's incremental patch into this patch.
- Fix deadlock between readdir() and memory fault, which is reported by
Itaru Kitayama.
Changelog V3 -> V4:
- Fix nested lock, which is reported by Itaru Kitayama, by updating space cache
inode in time.
Changelog V2 -> V3:
- Fix the race between the delayed worker and the task which does delayed items
balance, which is reported by Tsutomu Itoh.
- Modify the patch address David Sterba's comment.
- Fix the bug of the cpu recursion spinlock, reported by Chris Mason
Changelog V1 -> V2:
- break up the global rb-tree, use a list to manage the delayed nodes,
which is created for every directory and file, and used to manage the
delayed directory name index items and the delayed inode item.
- introduce a worker to deal with the delayed nodes.
Compare with Ext3/4, the performance of file creation and deletion on btrfs
is very poor. the reason is that btrfs must do a lot of b+ tree insertions,
such as inode item, directory name item, directory name index and so on.
If we can do some delayed b+ tree insertion or deletion, we can improve the
performance, so we made this patch which implemented delayed directory name
index insertion/deletion and delayed inode update.
Implementation:
- introduce a delayed root object into the filesystem, that use two lists to
manage the delayed nodes which are created for every file/directory.
One is used to manage all the delayed nodes that have delayed items. And the
other is used to manage the delayed nodes which is waiting to be dealt with
by the work thread.
- Every delayed node has two rb-tree, one is used to manage the directory name
index which is going to be inserted into b+ tree, and the other is used to
manage the directory name index which is going to be deleted from b+ tree.
- introduce a worker to deal with the delayed operation. This worker is used
to deal with the works of the delayed directory name index items insertion
and deletion and the delayed inode update.
When the delayed items is beyond the lower limit, we create works for some
delayed nodes and insert them into the work queue of the worker, and then
go back.
When the delayed items is beyond the upper bound, we create works for all
the delayed nodes that haven't been dealt with, and insert them into the work
queue of the worker, and then wait for that the untreated items is below some
threshold value.
- When we want to insert a directory name index into b+ tree, we just add the
information into the delayed inserting rb-tree.
And then we check the number of the delayed items and do delayed items
balance. (The balance policy is above.)
- When we want to delete a directory name index from the b+ tree, we search it
in the inserting rb-tree at first. If we look it up, just drop it. If not,
add the key of it into the delayed deleting rb-tree.
Similar to the delayed inserting rb-tree, we also check the number of the
delayed items and do delayed items balance.
(The same to inserting manipulation)
- When we want to update the metadata of some inode, we cached the data of the
inode into the delayed node. the worker will flush it into the b+ tree after
dealing with the delayed insertion and deletion.
- We will move the delayed node to the tail of the list after we access the
delayed node, By this way, we can cache more delayed items and merge more
inode updates.
- If we want to commit transaction, we will deal with all the delayed node.
- the delayed node will be freed when we free the btrfs inode.
- Before we log the inode items, we commit all the directory name index items
and the delayed inode update.
I did a quick test by the benchmark tool[1] and found we can improve the
performance of file creation by ~15%, and file deletion by ~20%.
Before applying this patch:
Create files:
Total files: 50000
Total time: 1.096108
Average time: 0.000022
Delete files:
Total files: 50000
Total time: 1.510403
Average time: 0.000030
After applying this patch:
Create files:
Total files: 50000
Total time: 0.932899
Average time: 0.000019
Delete files:
Total files: 50000
Total time: 1.215732
Average time: 0.000024
[1] http://marc.info/?l=linux-btrfs&m=128212635122920&q=p3
Many thanks for Kitayama-san's help!
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Reviewed-by: David Sterba <dave@jikos.cz>
Tested-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Tested-by: Itaru Kitayama <kitayama@cl.bb4u.ne.jp>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2011-04-22 18:12:22 +08:00
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
2008-11-17 20:37:39 -05:00
|
|
|
|
2009-01-05 15:43:43 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-17 20:37:39 -05:00
|
|
|
|
2009-09-21 15:56:00 -04:00
|
|
|
|
2011-04-20 10:31:50 +08:00
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
2008-11-17 20:37:39 -05:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
|
|
|
|
|
2010-10-29 15:41:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2013-02-06 12:06:02 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-28 10:01:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2009-11-12 09:37:02 +00:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2009-11-12 09:37:02 +00:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-06 04:02:28 -06:00
|
|
|
|
|
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
|
|
|
|
|
2010-12-20 16:04:08 +08:00
|
|
|
|
2013-02-28 10:01:15 +00:00
|
|
|
|
2013-02-07 06:02:44 +00:00
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-14 15:16:14 -04:00
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
|
|
|
|
|
2011-06-14 15:16:14 -04:00
|
|
|
|
2010-10-29 15:41:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-05 12:42:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-10-22 15:51:44 -04:00
|
|
|
|
2012-11-05 12:42:09 +00:00
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2009-11-12 09:37:02 +00:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2011-01-31 16:22:42 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2011-07-16 21:38:06 -04:00
|
|
|
|
2009-11-12 09:37:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-29 15:46:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-10 11:05:07 -08:00
|
|
|
|
2010-10-29 15:46:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-10 11:05:07 -08:00
|
|
|
|
2010-10-29 15:46:43 -04:00
|
|
|
|
2012-02-10 11:05:07 -08:00
|
|
|
|
2010-10-29 15:46:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-10-10 15:25:25 -04:00
|
|
|
|
2010-10-29 15:46:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
2010-10-29 15:41:32 -04:00
|
|
|
|
2011-09-14 15:58:21 +02:00
|
|
|
|
2013-02-07 06:02:44 +00:00
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
2012-06-29 03:58:46 -06:00
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
2012-12-17 14:26:57 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
2013-02-28 10:01:15 +00:00
|
|
|
|
2011-09-14 15:58:21 +02:00
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
2013-02-28 10:04:33 +00:00
|
|
|
|
|
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-31 17:08:14 +00:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-31 17:08:14 +00:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-31 17:08:14 +00:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-31 18:21:12 +00:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
2011-05-31 17:08:14 +00:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-11 16:03:35 +08:00
|
|
|
|
2012-03-29 09:57:45 -04:00
|
|
|
|
|
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
2012-06-11 16:03:35 +08:00
|
|
|
|
|
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-01 14:57:19 +01:00
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
2012-03-01 14:57:19 +01:00
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
2010-03-20 11:22:10 +00:00
|
|
|
|
2012-06-11 16:03:35 +08:00
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
|
|
|
|
|
2012-06-11 16:03:35 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-19 21:08:32 -04:00
|
|
|
|
|
|
|
|
|
2012-06-11 16:03:35 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
2012-03-29 09:57:45 -04:00
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
2012-03-29 09:57:45 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-11 16:03:35 +08:00
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
|
|
|
|
|
2012-06-11 16:03:35 +08:00
|
|
|
|
|
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
2012-06-19 21:08:32 -04:00
|
|
|
|
2012-06-11 16:03:35 +08:00
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
2012-03-29 09:57:45 -04:00
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2012-03-29 09:57:44 -04:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-16 15:01:24 +08:00
|
|
|
|
2011-09-21 15:05:58 -04:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
2012-03-29 09:57:44 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
2012-03-29 09:57:44 -04:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-16 15:01:24 +08:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
2012-03-29 09:57:44 -04:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
2012-02-16 15:01:24 +08:00
|
|
|
|
2011-07-11 10:47:06 -04:00
|
|
|
|
2012-02-16 15:01:24 +08:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-16 15:01:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-01 14:57:19 +01:00
|
|
|
|
2012-02-16 15:01:24 +08:00
|
|
|
|
|
|
|
|
|
2012-03-01 14:57:19 +01:00
|
|
|
|
2012-02-16 15:01:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-29 09:57:44 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-16 15:01:24 +08:00
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-16 15:01:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-01 14:57:19 +01:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
2012-09-05 19:10:51 -06:00
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
2012-03-29 09:57:44 -04:00
|
|
|
|
2011-07-15 15:16:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
2012-03-29 09:57:44 -04:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-05 19:10:51 -06:00
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-29 09:57:44 -04:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-02 15:56:39 +08:00
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2011-09-02 15:57:07 +08:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
2010-10-25 15:12:50 +08:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
2011-09-02 15:57:07 +08:00
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-25 15:12:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2011-09-02 15:56:39 +08:00
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-02 15:57:07 +08:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-11 09:42:04 -05:00
|
|
|
|
2011-09-02 15:56:39 +08:00
|
|
|
|
2010-03-11 09:42:04 -05:00
|
|
|
|
|
|
|
|
|
2011-09-02 15:56:39 +08:00
|
|
|
|
2010-03-11 09:42:04 -05:00
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-26 15:01:12 -05:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
2011-10-10 15:43:34 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-11 11:41:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-09 23:38:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-29 09:57:45 -04:00
|
|
|
|
2012-06-11 16:03:35 +08:00
|
|
|
|
2012-06-19 21:08:32 -04:00
|
|
|
|
|
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-02 15:57:07 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-11 09:42:04 -05:00
|
|
|
|
2010-10-25 15:12:50 +08:00
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
2011-09-02 15:57:07 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
2012-03-29 09:57:44 -04:00
|
|
|
|
2011-09-02 15:57:07 +08:00
|
|
|
|
2012-03-29 09:57:44 -04:00
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
2012-03-29 09:57:44 -04:00
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
2012-12-11 16:00:21 -08:00
|
|
|
|
2012-03-29 09:57:44 -04:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-29 09:57:45 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
2011-09-02 15:57:07 +08:00
|
|
|
|
2011-09-02 15:56:25 +08:00
|
|
|
|
2011-09-02 15:57:07 +08:00
|
|
|
|
|
|
|
|
|
2011-09-02 15:56:25 +08:00
|
|
|
|
2011-09-02 15:57:07 +08:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-11 09:42:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-17 14:21:50 +08:00
|
|
|
|
2010-03-11 09:42:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-25 15:12:50 +08:00
|
|
|
|
2012-07-24 11:58:43 -06:00
|
|
|
|
2010-10-25 15:12:50 +08:00
|
|
|
|
|
|
|
|
|
2011-09-01 16:33:57 +02:00
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-10 10:52:59 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2012-11-26 08:43:45 +00:00
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-05 16:57:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:43:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-05 17:54:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-21 10:38:50 +00:00
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
2012-11-05 17:54:08 +01:00
|
|
|
|
2009-04-08 15:06:54 +08:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-07-24 12:20:14 -04:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-21 09:21:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-20 07:33:38 -05:00
|
|
|
|
2009-04-21 12:38:29 -07:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-12-21 09:19:51 +00:00
|
|
|
|
2012-11-05 17:03:39 +01:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2011-11-20 07:33:38 -05:00
|
|
|
|
2009-04-21 12:38:29 -07:00
|
|
|
|
2012-12-21 09:21:30 +00:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-12-21 09:19:51 +00:00
|
|
|
|
|
|
|
|
|
2012-06-14 02:23:19 -06:00
|
|
|
|
2012-12-21 09:19:51 +00:00
|
|
|
|
2012-06-15 20:07:17 -04:00
|
|
|
|
2012-12-21 09:21:30 +00:00
|
|
|
|
2012-06-14 02:23:19 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-28 10:59:11 +00:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-05 18:29:28 +01:00
|
|
|
|
2012-12-21 09:21:30 +00:00
|
|
|
|
2012-11-05 18:29:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-04 14:03:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
2011-01-20 06:19:37 +00:00
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
2011-01-20 06:19:37 +00:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2011-11-18 18:55:01 +00:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-10-27 12:06:39 +00:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
2012-11-05 17:54:08 +01:00
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-29 15:41:32 -04:00
|
|
|
|
2011-09-14 15:58:21 +02:00
|
|
|
|
|
|
|
|
|
2013-02-07 06:02:44 +00:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-06-29 03:58:46 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-29 15:41:32 -04:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-06-29 03:58:46 -06:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2012-02-20 22:14:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-29 03:58:46 -06:00
|
|
|
|
2012-02-20 22:14:55 -05:00
|
|
|
|
|
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
2010-10-29 15:41:32 -04:00
|
|
|
|
2011-09-14 15:58:21 +02:00
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
2012-08-28 12:52:22 -04:00
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
2012-08-28 12:52:22 -04:00
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
2012-06-29 03:58:46 -06:00
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
|
|
|
|
|
2009-01-05 21:25:51 -05:00
|
|
|
|
|
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
2012-08-26 21:20:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
2012-08-28 12:52:22 -04:00
|
|
|
|
2008-10-09 13:39:39 -04:00
|
|
|
|
2012-06-29 03:58:46 -06:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2010-10-29 15:41:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
2010-10-29 15:41:32 -04:00
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
2010-10-29 15:41:32 -04:00
|
|
|
|
|
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-29 15:41:32 -04:00
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
2010-12-20 16:04:08 +08:00
|
|
|
|
2011-09-14 15:58:21 +02:00
|
|
|
|
2010-12-10 06:41:56 +00:00
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-10 06:41:56 +00:00
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-20 16:04:08 +08:00
|
|
|
|
2011-09-14 15:58:21 +02:00
|
|
|
|
2010-12-10 06:41:56 +00:00
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-10 00:36:28 +00:00
|
|
|
|
2010-12-20 16:04:08 +08:00
|
|
|
|
2011-09-14 15:58:21 +02:00
|
|
|
|
|
|
|
|
|
2010-12-20 16:04:08 +08:00
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
2010-10-29 15:41:32 -04:00
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-20 16:04:08 +08:00
|
|
|
|
|
|
|
|
|
2011-09-14 15:58:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
|
|
|
|
|
2011-09-14 15:58:21 +02:00
|
|
|
|
2013-02-07 06:02:44 +00:00
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-10 06:41:56 +00:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2011-09-14 15:58:21 +02:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-20 10:31:50 +08:00
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-29 03:58:49 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
2012-06-29 03:58:49 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
2012-06-29 03:58:49 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
2012-06-29 03:58:49 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
2012-06-29 03:58:49 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
2012-06-29 03:58:49 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-02-16 06:06:34 +00:00
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-29 03:58:49 -06:00
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-02-16 06:06:34 +00:00
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-29 03:58:49 -06:00
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
2012-06-29 03:58:49 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 12:10:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
2010-03-18 12:10:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-14 17:43:41 +00:00
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 12:10:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-31 18:21:12 +00:00
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-21 01:20:15 +02:00
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-29 15:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 12:23:10 -04:00
|
|
|
|
|
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 12:23:10 -04:00
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 12:23:10 -04:00
|
|
|
|
|
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
|
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-21 01:20:15 +02:00
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
2010-03-18 12:23:10 -04:00
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
|
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
2011-07-14 03:16:00 +00:00
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-29 15:14:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-20 11:24:15 +00:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
2010-03-18 12:17:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-11-18 05:42:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-28 10:05:36 +00:00
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-23 11:57:51 -05:00
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-29 15:46:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-10-22 11:39:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-20 10:31:50 +08:00
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-28 10:05:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-28 10:05:36 +00:00
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
2013-02-28 10:05:36 +00:00
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-16 10:49:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-16 10:49:58 -04:00
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
2013-02-28 10:05:36 +00:00
|
|
|
|
|
|
|
|
|
2010-10-29 15:41:32 -04:00
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
2013-02-28 10:05:36 +00:00
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-09 09:25:16 -04:00
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
Btrfs: fix cleaner thread not working with inode cache option
Right now inode cache inode is treated as the same as space cache
inode, ie. keep inode in memory till putting super.
But this leads to an awkward situation.
If we're going to delete a snapshot/subvolume, btrfs will not
actually delete it and return free space, but will add it to dead
roots list until the last inode on this snap/subvol being destroyed.
Then we'll fetch deleted roots and cleanup them via cleaner thread.
So here is the problem, if we enable inode cache option, each
snap/subvol has a cached inode which is used to store inode allcation
information. And this cache inode will be kept in memory, as the above
said. So with inode cache, snap/subvol can only be added into
dead roots list during freeing roots stage in umount, so that we can
ONLY get space back after another remount(we cleanup dead roots on mount).
But the real thing is we'll no more use the snap/subvol if we mark it
deleted, so we can safely iput its cache inode when we delete snap/subvol.
Another thing is that we need to change the rules of droping inode, we
don't keep snap/subvol's cache inode in memory till end so that we can
add snap/subvol into dead roots list in time.
Reported-by: Mitch Harder <mitch.harder@sabayonlinux.org>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
2013-02-20 14:10:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-09 08:06:57 -05:00
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-11 09:42:04 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2010-03-11 09:42:04 -05:00
|
|
|
|
2008-11-12 14:34:12 -05:00
|
|
|
|
|
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-20 16:04:08 +08:00
|
|
|
|
2012-11-05 17:54:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
2012-11-05 17:54:08 +01:00
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-05 17:54:08 +01:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-05 16:57:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-31 18:21:12 +00:00
|
|
|
|
2010-05-16 10:49:58 -04:00
|
|
|
|
|
|
|
|
|
2013-01-31 18:21:12 +00:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2009-01-05 16:57:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-11 09:42:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-20 11:24:48 +00:00
|
|
|
|
2010-03-11 09:42:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2011-05-24 15:35:30 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-11 09:42:04 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2010-05-16 10:49:58 -04:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2009-01-05 16:57:23 -05:00
|
|
|
|
2012-11-05 17:54:08 +01:00
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
2009-01-05 16:57:23 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2008-12-02 09:54:17 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-05 16:57:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-05 17:54:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
2012-11-05 17:54:08 +01:00
|
|
|
|
2009-04-08 15:06:54 +08:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2008-07-24 12:20:14 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
2012-11-05 17:54:08 +01:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:44:50 +00:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-05 16:57:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:44:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-12 14:34:12 -05:00
|
|
|
|
2012-11-05 17:54:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:44:50 +00:00
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
2012-11-05 17:54:08 +01:00
|
|
|
|
2009-04-08 15:06:54 +08:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2008-07-24 12:20:14 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
2012-11-05 17:54:08 +01:00
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
2011-06-08 08:27:56 +00:00
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-08 08:27:56 +00:00
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-08 08:27:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-08 08:27:56 +00:00
|
|
|
|
|
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-08 08:27:56 +00:00
|
|
|
|
|
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
2011-06-08 08:27:56 +00:00
|
|
|
|
|
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-05 17:03:39 +01:00
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-04-26 18:36:56 +02:00
|
|
|
|
2012-06-04 14:03:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-04-26 18:36:56 +02:00
|
|
|
|
|
|
|
|
|
2012-03-19 16:17:22 +01:00
|
|
|
|
2012-04-26 18:36:56 +02:00
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-08-28 12:52:22 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-04 23:23:47 -04:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2008-08-04 23:23:47 -04:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
Btrfs: move data checksumming into a dedicated tree
Btrfs stores checksums for each data block. Until now, they have
been stored in the subvolume trees, indexed by the inode that is
referencing the data block. This means that when we read the inode,
we've probably read in at least some checksums as well.
But, this has a few problems:
* The checksums are indexed by logical offset in the file. When
compression is on, this means we have to do the expensive checksumming
on the uncompressed data. It would be faster if we could checksum
the compressed data instead.
* If we implement encryption, we'll be checksumming the plain text and
storing that on disk. This is significantly less secure.
* For either compression or encryption, we have to get the plain text
back before we can verify the checksum as correct. This makes the raid
layer balancing and extent moving much more expensive.
* It makes the front end caching code more complex, as we have touch
the subvolume and inodes as we cache extents.
* There is potentitally one copy of the checksum in each subvolume
referencing an extent.
The solution used here is to store the extent checksums in a dedicated
tree. This allows us to index the checksums by phyiscal extent
start and length. It means:
* The checksum is against the data stored on disk, after any compression
or encryption is done.
* The checksum is stored in a central location, and can be verified without
following back references, or reading inodes.
This makes compression significantly faster by reducing the amount of
data that needs to be checksummed. It will also allow much faster
raid management code in general.
The checksums are indexed by a key with a fixed objectid (a magic value
in ctree.h) and offset set to the starting byte of the extent. This
allows us to copy the checksum items into the fsync log tree directly (or
any other tree), without having to invent a second format for them.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2008-12-08 16:58:54 -05:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-05 16:57:23 -05:00
|
|
|
|
2010-07-19 16:58:20 -04:00
|
|
|
|
2009-01-05 16:57:23 -05:00
|
|
|
|
|
|
|
|
|
2010-12-20 16:04:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-23 11:57:51 -05:00
|
|
|
|
2008-11-12 14:34:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-28 12:52:22 -04:00
|
|
|
|
|
|
|
|
|
2008-12-19 10:58:39 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-15 11:27:37 -04:00
|
|
|
|
2011-08-01 18:11:57 +02:00
|
|
|
|
2012-08-28 12:52:22 -04:00
|
|
|
|
2011-08-01 18:11:57 +02:00
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-15 11:27:37 -04:00
|
|
|
|
2012-08-28 12:52:22 -04:00
|
|
|
|
2010-05-15 11:27:37 -04:00
|
|
|
|
|
|
|
|
|
2011-09-18 10:20:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-04 23:23:47 -04:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2008-08-04 23:23:47 -04:00
|
|
|
|
2011-08-01 18:11:57 +02:00
|
|
|
|
2008-08-04 23:23:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2010-10-29 15:37:33 -04:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2010-10-29 15:37:33 -04:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
2010-07-19 16:58:20 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-11-19 01:36:10 +00:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
2010-11-19 01:36:10 +00:00
|
|
|
|
|
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
2011-09-11 10:52:25 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-18 10:20:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-23 13:14:14 -04:00
|
|
|
|
2012-09-18 03:52:23 -06:00
|
|
|
|
|
|
|
|
|
2010-10-29 15:37:33 -04:00
|
|
|
|
2012-09-18 03:52:23 -06:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-09-18 03:52:23 -06:00
|
|
|
|
2008-08-04 23:23:47 -04:00
|
|
|
|
|
|
|
|
|
2010-10-29 15:37:33 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
2011-04-20 10:31:50 +08:00
|
|
|
|
2008-08-04 23:23:47 -04:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-01 18:11:57 +02:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-04 23:23:47 -04:00
|
|
|
|
|
|
|
|
|
2011-08-01 18:11:57 +02:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-04 23:23:47 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-04 23:23:47 -04:00
|
|
|
|
Btrfs: move data checksumming into a dedicated tree
Btrfs stores checksums for each data block. Until now, they have
been stored in the subvolume trees, indexed by the inode that is
referencing the data block. This means that when we read the inode,
we've probably read in at least some checksums as well.
But, this has a few problems:
* The checksums are indexed by logical offset in the file. When
compression is on, this means we have to do the expensive checksumming
on the uncompressed data. It would be faster if we could checksum
the compressed data instead.
* If we implement encryption, we'll be checksumming the plain text and
storing that on disk. This is significantly less secure.
* For either compression or encryption, we have to get the plain text
back before we can verify the checksum as correct. This makes the raid
layer balancing and extent moving much more expensive.
* It makes the front end caching code more complex, as we have touch
the subvolume and inodes as we cache extents.
* There is potentitally one copy of the checksum in each subvolume
referencing an extent.
The solution used here is to store the extent checksums in a dedicated
tree. This allows us to index the checksums by phyiscal extent
start and length. It means:
* The checksum is against the data stored on disk, after any compression
or encryption is done.
* The checksum is stored in a central location, and can be verified without
following back references, or reading inodes.
This makes compression significantly faster by reducing the amount of
data that needs to be checksummed. It will also allow much faster
raid management code in general.
The checksums are indexed by a key with a fixed objectid (a magic value
in ctree.h) and offset set to the starting byte of the extent. This
allows us to copy the checksum items into the fsync log tree directly (or
any other tree), without having to invent a second format for them.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2008-12-08 16:58:54 -05:00
|
|
|
|
2011-04-20 10:31:50 +08:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-23 13:14:14 -04:00
|
|
|
|
|
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-12 22:31:14 +00:00
|
|
|
|
2008-09-23 13:14:14 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-06-27 21:07:03 -04:00
|
|
|
|
|
|
|
|
|
2009-01-05 21:25:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
2009-01-05 21:25:51 -05:00
|
|
|
|
|
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-21 01:20:15 +02:00
|
|
|
|
2008-09-23 13:14:14 -04:00
|
|
|
|
2010-10-29 15:37:33 -04:00
|
|
|
|
2012-09-18 03:52:23 -06:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
2008-09-23 13:14:14 -04:00
|
|
|
|
2011-04-20 10:31:50 +08:00
|
|
|
|
2011-01-26 14:10:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
2011-09-20 14:48:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-06-27 21:07:03 -04:00
|
|
|
|
|
|
|
|
|
2011-09-11 10:52:25 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Btrfs: turbo charge fsync
At least for the vm workload. Currently on fsync we will
1) Truncate all items in the log tree for the given inode if they exist
and
2) Copy all items for a given inode into the log
The problem with this is that for things like VMs you can have lots of
extents from the fragmented writing behavior, and worst yet you may have
only modified a few extents, not the entire thing. This patch fixes this
problem by tracking which transid modified our extent, and then when we do
the tree logging we find all of the extents we've modified in our current
transaction, sort them and commit them. We also only truncate up to the
xattrs of the inode and copy that stuff in normally, and then just drop any
extents in the range we have that exist in the log already. Here are some
numbers of a 50 meg fio job that does random writes and fsync()s after every
write
Original Patched
SATA drive 82KB/s 140KB/s
Fusion drive 431KB/s 2532KB/s
So around 2-6 times faster depending on your hardware. There are a few
corner cases, for example if you truncate at all we have to do it the old
way since there is no way to be sure what is in the log is ok. This
probably could be done smarter, but if you write-fsync-truncate-write-fsync
you deserve what you get. All this work is in RAM of course so if your
inode gets evicted from cache and you read it in and fsync it we'll do it
the slow way if we are still in the same transaction that we last modified
the inode in.
The biggest cool part of this is that it requires no changes to the recovery
code, so if you fsync with this patch and crash and load an old kernel, it
will run the recovery and be a-ok. I have tested this pretty thoroughly
with an fsync tester and everything comes back fine, as well as xfstests.
Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
2012-08-17 13:14:17 -04:00
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
|
|
|
|
|
2012-08-29 12:24:27 -04:00
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Btrfs: Mixed back reference (FORWARD ROLLING FORMAT CHANGE)
This commit introduces a new kind of back reference for btrfs metadata.
Once a filesystem has been mounted with this commit, IT WILL NO LONGER
BE MOUNTABLE BY OLDER KERNELS.
When a tree block in subvolume tree is cow'd, the reference counts of all
extents it points to are increased by one. At transaction commit time,
the old root of the subvolume is recorded in a "dead root" data structure,
and the btree it points to is later walked, dropping reference counts
and freeing any blocks where the reference count goes to 0.
The increments done during cow and decrements done after commit cancel out,
and the walk is a very expensive way to go about freeing the blocks that
are no longer referenced by the new btree root. This commit reduces the
transaction overhead by avoiding the need for dead root records.
When a non-shared tree block is cow'd, we free the old block at once, and the
new block inherits old block's references. When a tree block with reference
count > 1 is cow'd, we increase the reference counts of all extents
the new block points to by one, and decrease the old block's reference count by
one.
This dead tree avoidance code removes the need to modify the reference
counts of lower level extents when a non-shared tree block is cow'd.
But we still need to update back ref for all pointers in the block.
This is because the location of the block is recorded in the back ref
item.
We can solve this by introducing a new type of back ref. The new
back ref provides information about pointer's key, level and in which
tree the pointer lives. This information allow us to find the pointer
by searching the tree. The shortcoming of the new back ref is that it
only works for pointers in tree blocks referenced by their owner trees.
This is mostly a problem for snapshots, where resolving one of these
fuzzy back references would be O(number_of_snapshots) and quite slow.
The solution used here is to use the fuzzy back references in the common
case where a given tree block is only referenced by one root,
and use the full back references when multiple roots have a reference
on a given block.
This commit adds per subvolume red-black tree to keep trace of cached
inodes. The red-black tree helps the balancing code to find cached
inodes whose inode numbers within a given range.
This commit improves the balancing code by introducing several data
structures to keep the state of balancing. The most important one
is the back ref cache. It caches how the upper level tree blocks are
referenced. This greatly reduce the overhead of checking back ref.
The improved balancing code scales significantly better with a large
number of snapshots.
This is a very large commit and was written in a number of
pieces. But, they depend heavily on the disk format change and were
squashed together to make sure git bisect didn't end up in a
bad state wrt space balancing or the format change.
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2009-06-10 10:45:14 -04:00
|
|
|
|
|
|
|
|
|
2011-04-20 10:31:50 +08:00
|
|
|
|
2011-09-12 15:26:38 +02:00
|
|
|
|
|
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-05 21:25:51 -05:00
|
|
|
|
2012-09-18 03:52:23 -06:00
|
|
|
|
|
|
|
|
|
2009-01-05 21:25:51 -05:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
Btrfs: turbo charge fsync
At least for the vm workload. Currently on fsync we will
1) Truncate all items in the log tree for the given inode if they exist
and
2) Copy all items for a given inode into the log
The problem with this is that for things like VMs you can have lots of
extents from the fragmented writing behavior, and worst yet you may have
only modified a few extents, not the entire thing. This patch fixes this
problem by tracking which transid modified our extent, and then when we do
the tree logging we find all of the extents we've modified in our current
transaction, sort them and commit them. We also only truncate up to the
xattrs of the inode and copy that stuff in normally, and then just drop any
extents in the range we have that exist in the log already. Here are some
numbers of a 50 meg fio job that does random writes and fsync()s after every
write
Original Patched
SATA drive 82KB/s 140KB/s
Fusion drive 431KB/s 2532KB/s
So around 2-6 times faster depending on your hardware. There are a few
corner cases, for example if you truncate at all we have to do it the old
way since there is no way to be sure what is in the log is ok. This
probably could be done smarter, but if you write-fsync-truncate-write-fsync
you deserve what you get. All this work is in RAM of course so if your
inode gets evicted from cache and you read it in and fsync it we'll do it
the slow way if we are still in the same transaction that we last modified
the inode in.
The biggest cool part of this is that it requires no changes to the recovery
code, so if you fsync with this patch and crash and load an old kernel, it
will run the recovery and be a-ok. I have tested this pretty thoroughly
with an fsync tester and everything comes back fine, as well as xfstests.
Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
2012-08-17 13:14:17 -04:00
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
|
|
|
|
|
2012-08-29 12:24:27 -04:00
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
2009-01-05 21:25:51 -05:00
|
|
|
|
|
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-21 01:20:15 +02:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
2012-04-05 15:03:02 -04:00
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
2010-06-12 22:31:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-11-19 01:36:34 +00:00
|
|
|
|
|
|
|
|
|
2010-06-12 22:31:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
2012-03-12 16:03:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-16 10:48:46 -04:00
|
|
|
|
2009-01-05 21:25:51 -05:00
|
|
|
|
2011-04-21 01:20:15 +02:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-21 01:20:15 +02:00
|
|
|
|
2012-09-18 03:52:23 -06:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-04 23:23:47 -04:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-08-28 12:52:22 -04:00
|
|
|
|
2008-12-19 10:58:39 -05:00
|
|
|
|
2011-12-09 08:06:57 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-12-02 09:52:24 -05:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-12-02 09:52:24 -05:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-12-02 09:54:17 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2009-09-29 18:38:44 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2009-09-29 18:38:44 -04:00
|
|
|
|
2008-06-11 21:53:58 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2009-09-29 18:38:44 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-04 10:41:27 -04:00
|
|
|
|
2010-12-20 16:04:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-23 11:57:51 -05:00
|
|
|
|
2008-11-12 14:34:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-11 17:25:13 -04:00
|
|
|
|
2008-08-04 10:41:27 -04:00
|
|
|
|
2009-09-29 18:38:44 -04:00
|
|
|
|
2011-04-13 12:54:33 -04:00
|
|
|
|
2011-01-24 00:57:10 +00:00
|
|
|
|
2009-09-29 18:38:44 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-11 17:25:13 -04:00
|
|
|
|
2011-12-09 08:06:57 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:43:07 +00:00
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:43:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:43:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
2012-11-26 08:43:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
|
|
|
|
|
2012-11-26 08:43:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-20 06:19:37 +00:00
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
2012-11-26 08:43:07 +00:00
|
|
|
|
|
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
|
|
|
|
|
2011-04-13 15:41:04 +02:00
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
|
|
|
|
|
2010-05-29 09:47:24 +00:00
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:43:07 +00:00
|
|
|
|
|
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-24 11:58:43 -06:00
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
2012-11-26 08:43:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
|
|
|
|
|
2012-08-01 18:56:49 +02:00
|
|
|
|
|
|
|
|
|
2010-09-29 11:22:36 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-01-13 18:19:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-16 15:40:10 -04:00
|
|
|
|
2011-04-11 15:56:31 +00:00
|
|
|
|
2010-01-13 18:19:06 +00:00
|
|
|
|
2010-09-29 11:22:36 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-16 15:40:10 -04:00
|
|
|
|
2010-01-13 18:19:06 +00:00
|
|
|
|
2011-02-14 16:04:23 -05:00
|
|
|
|
2010-09-29 11:22:36 -04:00
|
|
|
|
2010-01-13 18:19:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-29 11:22:36 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-01-13 18:19:06 +00:00
|
|
|
|
2010-03-16 15:40:10 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-29 11:22:36 -04:00
|
|
|
|
2011-02-14 16:04:23 -05:00
|
|
|
|
2010-09-29 11:22:36 -04:00
|
|
|
|
2010-03-16 15:40:10 -04:00
|
|
|
|
2010-09-29 11:22:36 -04:00
|
|
|
|
2010-03-16 15:40:10 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-29 11:22:36 -04:00
|
|
|
|
|
|
|
|
|
2010-03-16 15:40:10 -04:00
|
|
|
|
2011-02-14 16:04:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-29 11:22:36 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-16 15:40:10 -04:00
|
|
|
|
2010-09-29 11:22:36 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-01 18:56:49 +02:00
|
|
|
|
|
|
|
|
|
2010-09-29 11:22:36 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-02-14 16:04:23 -05:00
|
|
|
|
2010-09-29 11:22:36 -04:00
|
|
|
|
2011-02-14 16:04:23 -05:00
|
|
|
|
|
|
|
|
|
2010-09-29 11:22:36 -04:00
|
|
|
|
|
|
|
|
|
2010-01-13 18:19:06 +00:00
|
|
|
|
|
|
|
|
|
2012-04-26 00:37:14 +08:00
|
|
|
|
2010-03-16 15:40:10 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-01-13 18:19:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-29 18:38:44 -04:00
|
|
|
|
|
|
|
|
|
2008-09-05 16:43:31 -04:00
|
|
|
|
2008-08-04 10:41:27 -04:00
|
|
|
|
2009-09-29 18:38:44 -04:00
|
|
|
|
|
|
|
|
|
2011-04-11 17:25:13 -04:00
|
|
|
|
2008-08-04 10:41:27 -04:00
|
|
|
|
2011-12-09 08:06:57 -05:00
|
|
|
|
2009-09-29 18:38:44 -04:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2012-11-26 08:40:43 +00:00
|
|
|
|
|
|
|
|
|
Btrfs: add START_SYNC, WAIT_SYNC ioctls
START_SYNC will start a sync/commit, but not wait for it to
complete. Any modification started after the ioctl returns is
guaranteed not to be included in the commit. If a non-NULL
pointer is passed, the transaction id will be returned to
userspace.
WAIT_SYNC will wait for any in-progress commit to complete. If a
transaction id is specified, the ioctl will block and then
return (success) when the specified transaction has committed.
If it has already committed when we call the ioctl, it returns
immediately. If the specified transaction doesn't exist, it
returns EINVAL.
If no transaction id is specified, WAIT_SYNC will wait for the
currently committing transaction to finish it's commit to disk.
If there is no currently committing transaction, it returns
success.
These ioctls are useful for applications which want to impose an
ordering on when fs modifications reach disk, but do not want to
wait for the full (slow) commit process to do so.
Picky callers can take the transid returned by START_SYNC and
feed it to WAIT_SYNC, and be certain to wait only as long as
necessary for the transaction _they_ started to reach disk.
Sloppy callers can START_SYNC and WAIT_SYNC without a transid,
and provided they didn't wait too long between the calls, they
will get the same result. However, if a second commit starts
before they call WAIT_SYNC, they may end up waiting longer for
it to commit as well. Even so, a START_SYNC+WAIT_SYNC still
guarantees that any operation completed before the START_SYNC
reaches disk.
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-10-29 15:41:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-23 08:14:16 +00:00
|
|
|
|
Btrfs: add START_SYNC, WAIT_SYNC ioctls
START_SYNC will start a sync/commit, but not wait for it to
complete. Any modification started after the ioctl returns is
guaranteed not to be included in the commit. If a non-NULL
pointer is passed, the transaction id will be returned to
userspace.
WAIT_SYNC will wait for any in-progress commit to complete. If a
transaction id is specified, the ioctl will block and then
return (success) when the specified transaction has committed.
If it has already committed when we call the ioctl, it returns
immediately. If the specified transaction doesn't exist, it
returns EINVAL.
If no transaction id is specified, WAIT_SYNC will wait for the
currently committing transaction to finish it's commit to disk.
If there is no currently committing transaction, it returns
success.
These ioctls are useful for applications which want to impose an
ordering on when fs modifications reach disk, but do not want to
wait for the full (slow) commit process to do so.
Picky callers can take the transid returned by START_SYNC and
feed it to WAIT_SYNC, and be certain to wait only as long as
necessary for the transaction _they_ started to reach disk.
Sloppy callers can START_SYNC and WAIT_SYNC without a transid,
and provided they didn't wait too long between the calls, they
will get the same result. However, if a second commit starts
before they call WAIT_SYNC, they may end up waiting longer for
it to commit as well. Even so, a START_SYNC+WAIT_SYNC still
guarantees that any operation completed before the START_SYNC
reaches disk.
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-10-29 15:41:32 -04:00
|
|
|
|
Btrfs: fix uncompleted transaction
In some cases, we need commit the current transaction, but don't want
to start a new one if there is no running transaction, so we introduce
the function - btrfs_attach_transaction(), which can catch the current
transaction, and return -ENOENT if there is no running transaction.
But no running transaction doesn't mean the current transction completely,
because we removed the running transaction before it completes. In some
cases, it doesn't matter. But in some special cases, such as freeze fs, we
hope the transaction is fully on disk, it will introduce some bugs, for
example, we may feeze the fs and dump the data in the disk, if the transction
doesn't complete, we would dump inconsistent data. So we need fix the above
problem for those cases.
We fixes this problem by introducing a function:
btrfs_attach_transaction_barrier()
if we hope all the transaction is fully on the disk, even they are not
running, we can use this function.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
2013-02-20 09:17:06 +00:00
|
|
|
|
2012-11-26 08:41:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Btrfs: add START_SYNC, WAIT_SYNC ioctls
START_SYNC will start a sync/commit, but not wait for it to
complete. Any modification started after the ioctl returns is
guaranteed not to be included in the commit. If a non-NULL
pointer is passed, the transaction id will be returned to
userspace.
WAIT_SYNC will wait for any in-progress commit to complete. If a
transaction id is specified, the ioctl will block and then
return (success) when the specified transaction has committed.
If it has already committed when we call the ioctl, it returns
immediately. If the specified transaction doesn't exist, it
returns EINVAL.
If no transaction id is specified, WAIT_SYNC will wait for the
currently committing transaction to finish it's commit to disk.
If there is no currently committing transaction, it returns
success.
These ioctls are useful for applications which want to impose an
ordering on when fs modifications reach disk, but do not want to
wait for the full (slow) commit process to do so.
Picky callers can take the transid returned by START_SYNC and
feed it to WAIT_SYNC, and be certain to wait only as long as
necessary for the transaction _they_ started to reach disk.
Sloppy callers can START_SYNC and WAIT_SYNC without a transid,
and provided they didn't wait too long between the calls, they
will get the same result. However, if a second commit starts
before they call WAIT_SYNC, they may end up waiting longer for
it to commit as well. Even so, a START_SYNC+WAIT_SYNC still
guarantees that any operation completed before the START_SYNC
reaches disk.
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-10-29 15:41:32 -04:00
|
|
|
|
2011-03-23 08:14:16 +00:00
|
|
|
|
2011-04-04 01:52:13 +00:00
|
|
|
|
|
|
|
|
|
2011-03-23 08:14:16 +00:00
|
|
|
|
2011-04-04 01:52:13 +00:00
|
|
|
|
2012-11-26 08:41:29 +00:00
|
|
|
|
Btrfs: add START_SYNC, WAIT_SYNC ioctls
START_SYNC will start a sync/commit, but not wait for it to
complete. Any modification started after the ioctl returns is
guaranteed not to be included in the commit. If a non-NULL
pointer is passed, the transaction id will be returned to
userspace.
WAIT_SYNC will wait for any in-progress commit to complete. If a
transaction id is specified, the ioctl will block and then
return (success) when the specified transaction has committed.
If it has already committed when we call the ioctl, it returns
immediately. If the specified transaction doesn't exist, it
returns EINVAL.
If no transaction id is specified, WAIT_SYNC will wait for the
currently committing transaction to finish it's commit to disk.
If there is no currently committing transaction, it returns
success.
These ioctls are useful for applications which want to impose an
ordering on when fs modifications reach disk, but do not want to
wait for the full (slow) commit process to do so.
Picky callers can take the transid returned by START_SYNC and
feed it to WAIT_SYNC, and be certain to wait only as long as
necessary for the transaction _they_ started to reach disk.
Sloppy callers can START_SYNC and WAIT_SYNC without a transid,
and provided they didn't wait too long between the calls, they
will get the same result. However, if a second commit starts
before they call WAIT_SYNC, they may end up waiting longer for
it to commit as well. Even so, a START_SYNC+WAIT_SYNC still
guarantees that any operation completed before the START_SYNC
reaches disk.
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-10-29 15:41:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:40:43 +00:00
|
|
|
|
|
|
|
|
|
Btrfs: add START_SYNC, WAIT_SYNC ioctls
START_SYNC will start a sync/commit, but not wait for it to
complete. Any modification started after the ioctl returns is
guaranteed not to be included in the commit. If a non-NULL
pointer is passed, the transaction id will be returned to
userspace.
WAIT_SYNC will wait for any in-progress commit to complete. If a
transaction id is specified, the ioctl will block and then
return (success) when the specified transaction has committed.
If it has already committed when we call the ioctl, it returns
immediately. If the specified transaction doesn't exist, it
returns EINVAL.
If no transaction id is specified, WAIT_SYNC will wait for the
currently committing transaction to finish it's commit to disk.
If there is no currently committing transaction, it returns
success.
These ioctls are useful for applications which want to impose an
ordering on when fs modifications reach disk, but do not want to
wait for the full (slow) commit process to do so.
Picky callers can take the transid returned by START_SYNC and
feed it to WAIT_SYNC, and be certain to wait only as long as
necessary for the transaction _they_ started to reach disk.
Sloppy callers can START_SYNC and WAIT_SYNC without a transid,
and provided they didn't wait too long between the calls, they
will get the same result. However, if a second commit starts
before they call WAIT_SYNC, they may end up waiting longer for
it to commit as well. Even so, a START_SYNC+WAIT_SYNC still
guarantees that any operation completed before the START_SYNC
reaches disk.
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-10-29 15:41:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:48:01 +00:00
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
2012-11-26 08:48:01 +00:00
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:48:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-05 17:03:39 +01:00
|
|
|
|
2012-11-05 18:29:28 +01:00
|
|
|
|
|
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:48:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-05 17:03:39 +01:00
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-05-25 16:06:09 +02:00
|
|
|
|
2012-06-22 06:30:39 -06:00
|
|
|
|
2012-05-25 16:06:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-22 06:30:39 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-05-25 16:06:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-06 15:08:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-07 16:48:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-02 15:48:34 -04:00
|
|
|
|
2011-07-07 16:48:38 +02:00
|
|
|
|
2011-11-06 03:07:10 -05:00
|
|
|
|
2011-07-07 16:48:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-28 11:33:31 +00:00
|
|
|
|
2011-07-07 16:48:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-20 07:31:57 -05:00
|
|
|
|
|
|
|
|
|
2011-11-02 15:48:34 -04:00
|
|
|
|
2011-07-07 16:48:38 +02:00
|
|
|
|
|
|
|
|
|
2011-11-20 07:31:57 -05:00
|
|
|
|
|
|
|
|
|
2011-07-07 16:48:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-07 20:01:30 -06:00
|
|
|
|
2011-07-07 16:48:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-07 20:01:29 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-07 16:48:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-20 07:31:57 -05:00
|
|
|
|
|
|
|
|
|
2011-07-07 16:48:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-07 20:01:30 -06:00
|
|
|
|
2011-07-07 16:48:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
2012-05-11 18:11:26 +08:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-29 03:58:48 -06:00
|
|
|
|
2012-05-11 18:11:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
2013-01-20 15:57:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-29 03:58:48 -06:00
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
|
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
|
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
2012-11-15 11:35:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
|
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
|
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-25 17:35:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2012-07-25 17:35:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-05 02:48:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-05 02:48:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-23 17:07:38 -05:00
|
|
|
|
2008-12-02 06:36:08 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
2009-04-17 10:37:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-24 10:24:28 +00:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
2010-12-10 06:41:56 +00:00
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
2008-11-17 21:02:50 -05:00
|
|
|
|
2010-12-20 15:53:28 +08:00
|
|
|
|
2011-09-14 15:58:21 +02:00
|
|
|
|
|
|
|
|
|
2009-09-21 16:00:26 -04:00
|
|
|
|
|
|
|
|
|
2010-12-20 16:30:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-11 21:11:29 +00:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2010-03-11 09:42:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-11-26 08:43:45 +00:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2008-12-02 06:36:08 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-11-26 08:44:50 +00:00
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2012-05-11 18:11:26 +08:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
2008-11-12 14:32:25 -05:00
|
|
|
|
|
|
|
|
|
2008-12-02 09:52:24 -05:00
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-28 15:39:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-07 16:48:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-01-13 18:19:06 +00:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Btrfs: add START_SYNC, WAIT_SYNC ioctls
START_SYNC will start a sync/commit, but not wait for it to
complete. Any modification started after the ioctl returns is
guaranteed not to be included in the commit. If a non-NULL
pointer is passed, the transaction id will be returned to
userspace.
WAIT_SYNC will wait for any in-progress commit to complete. If a
transaction id is specified, the ioctl will block and then
return (success) when the specified transaction has committed.
If it has already committed when we call the ioctl, it returns
immediately. If the specified transaction doesn't exist, it
returns EINVAL.
If no transaction id is specified, WAIT_SYNC will wait for the
currently committing transaction to finish it's commit to disk.
If there is no currently committing transaction, it returns
success.
These ioctls are useful for applications which want to impose an
ordering on when fs modifications reach disk, but do not want to
wait for the full (slow) commit process to do so.
Picky callers can take the transid returned by START_SYNC and
feed it to WAIT_SYNC, and be certain to wait only as long as
necessary for the transaction _they_ started to reach disk.
Sloppy callers can START_SYNC and WAIT_SYNC without a transid,
and provided they didn't wait too long between the calls, they
will get the same result. However, if a second commit starts
before they call WAIT_SYNC, they may end up waiting longer for
it to commit as well. Even so, a START_SYNC+WAIT_SYNC still
guarantees that any operation completed before the START_SYNC
reaches disk.
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-10-29 15:41:32 -04:00
|
|
|
|
2012-11-26 08:40:43 +00:00
|
|
|
|
Btrfs: add START_SYNC, WAIT_SYNC ioctls
START_SYNC will start a sync/commit, but not wait for it to
complete. Any modification started after the ioctl returns is
guaranteed not to be included in the commit. If a non-NULL
pointer is passed, the transaction id will be returned to
userspace.
WAIT_SYNC will wait for any in-progress commit to complete. If a
transaction id is specified, the ioctl will block and then
return (success) when the specified transaction has committed.
If it has already committed when we call the ioctl, it returns
immediately. If the specified transaction doesn't exist, it
returns EINVAL.
If no transaction id is specified, WAIT_SYNC will wait for the
currently committing transaction to finish it's commit to disk.
If there is no currently committing transaction, it returns
success.
These ioctls are useful for applications which want to impose an
ordering on when fs modifications reach disk, but do not want to
wait for the full (slow) commit process to do so.
Picky callers can take the transid returned by START_SYNC and
feed it to WAIT_SYNC, and be certain to wait only as long as
necessary for the transaction _they_ started to reach disk.
Sloppy callers can START_SYNC and WAIT_SYNC without a transid,
and provided they didn't wait too long between the calls, they
will get the same result. However, if a second commit starts
before they call WAIT_SYNC, they may end up waiting longer for
it to commit as well. Even so, a START_SYNC+WAIT_SYNC still
guarantees that any operation completed before the START_SYNC
reaches disk.
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-10-29 15:41:32 -04:00
|
|
|
|
2012-11-26 08:40:43 +00:00
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
2012-11-26 08:48:01 +00:00
|
|
|
|
2011-03-11 15:41:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:47 +02:00
|
|
|
|
2012-05-11 18:11:26 +08:00
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
|
|
|
|
|
2012-01-16 22:04:49 +02:00
|
|
|
|
|
|
|
|
|
2012-07-25 17:35:53 +02:00
|
|
|
|
|
|
|
|
|
2012-07-25 23:19:24 +02:00
|
|
|
|
|
|
|
|
|
2012-05-25 16:06:09 +02:00
|
|
|
|
2012-06-22 06:30:39 -06:00
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
2011-09-14 15:53:51 +02:00
|
|
|
|
2012-11-26 08:50:11 +00:00
|
|
|
|
2012-11-06 15:08:53 +01:00
|
|
|
|
|
|
|
|
|
2013-01-05 02:48:01 +00:00
|
|
|
|
|
|
|
|
|
2013-01-05 02:48:08 +00:00
|
|
|
|
|
|
|
|
|
2008-06-11 21:53:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|