diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-20 12:20:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-20 12:20:59 -0400 |
commit | f39d01be4c59a61a08d0cb53f615e7016b85d339 (patch) | |
tree | 6777590e3ff2ddf4df1d38444ba7d692cd463b7b /fs/logfs | |
parent | 54291263519ac2c9bdda68b23b02fef3808deed4 (diff) | |
parent | 7db82437cfcac4bdfe79a6323eb554fdfa271623 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (44 commits)
vlynq: make whole Kconfig-menu dependant on architecture
add descriptive comment for TIF_MEMDIE task flag declaration.
EEPROM: max6875: Header file cleanup
EEPROM: 93cx6: Header file cleanup
EEPROM: Header file cleanup
agp: use NULL instead of 0 when pointer is needed
rtc-v3020: make bitfield unsigned
PCI: make bitfield unsigned
jbd2: use NULL instead of 0 when pointer is needed
cciss: fix shadows sparse warning
doc: inode uses a mutex instead of a semaphore.
uml: i386: Avoid redefinition of NR_syscalls
fix "seperate" typos in comments
cocbalt_lcdfb: correct sections
doc: Change urls for sparse
Powerpc: wii: Fix typo in comment
i2o: cleanup some exit paths
Documentation/: it's -> its where appropriate
UML: Fix compiler warning due to missing task_struct declaration
UML: add kernel.h include to signal.c
...
Diffstat (limited to 'fs/logfs')
-rw-r--r-- | fs/logfs/dir.c | 2 | ||||
-rw-r--r-- | fs/logfs/logfs.h | 2 | ||||
-rw-r--r-- | fs/logfs/logfs_abi.h | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/fs/logfs/dir.c b/fs/logfs/dir.c index 2396a85c0f55..72d1893ddd36 100644 --- a/fs/logfs/dir.c +++ b/fs/logfs/dir.c | |||
@@ -12,7 +12,7 @@ | |||
12 | * Atomic dir operations | 12 | * Atomic dir operations |
13 | * | 13 | * |
14 | * Directory operations are by default not atomic. Dentries and Inodes are | 14 | * Directory operations are by default not atomic. Dentries and Inodes are |
15 | * created/removed/altered in seperate operations. Therefore we need to do | 15 | * created/removed/altered in separate operations. Therefore we need to do |
16 | * a small amount of journaling. | 16 | * a small amount of journaling. |
17 | * | 17 | * |
18 | * Create, link, mkdir, mknod and symlink all share the same function to do | 18 | * Create, link, mkdir, mknod and symlink all share the same function to do |
diff --git a/fs/logfs/logfs.h b/fs/logfs/logfs.h index 93b55f337245..1a9db84f8d8f 100644 --- a/fs/logfs/logfs.h +++ b/fs/logfs/logfs.h | |||
@@ -707,7 +707,7 @@ static inline gc_level_t expand_level(u64 ino, level_t __level) | |||
707 | u8 level = (__force u8)__level; | 707 | u8 level = (__force u8)__level; |
708 | 708 | ||
709 | if (ino == LOGFS_INO_MASTER) { | 709 | if (ino == LOGFS_INO_MASTER) { |
710 | /* ifile has seperate areas */ | 710 | /* ifile has separate areas */ |
711 | level += LOGFS_MAX_LEVELS; | 711 | level += LOGFS_MAX_LEVELS; |
712 | } | 712 | } |
713 | return (__force gc_level_t)level; | 713 | return (__force gc_level_t)level; |
diff --git a/fs/logfs/logfs_abi.h b/fs/logfs/logfs_abi.h index f674725663fe..ae960519c54a 100644 --- a/fs/logfs/logfs_abi.h +++ b/fs/logfs/logfs_abi.h | |||
@@ -50,9 +50,9 @@ static inline void check_##type(void) \ | |||
50 | * 12 - gc recycled blocks, long-lived data | 50 | * 12 - gc recycled blocks, long-lived data |
51 | * 13 - replacement blocks, short-lived data | 51 | * 13 - replacement blocks, short-lived data |
52 | * | 52 | * |
53 | * Levels 1-11 are necessary for robust gc operations and help seperate | 53 | * Levels 1-11 are necessary for robust gc operations and help separate |
54 | * short-lived metadata from longer-lived file data. In the future, | 54 | * short-lived metadata from longer-lived file data. In the future, |
55 | * file data should get seperated into several segments based on simple | 55 | * file data should get separated into several segments based on simple |
56 | * heuristics. Old data recycled during gc operation is expected to be | 56 | * heuristics. Old data recycled during gc operation is expected to be |
57 | * long-lived. New data is of uncertain life expectancy. New data | 57 | * long-lived. New data is of uncertain life expectancy. New data |
58 | * used to replace older blocks in existing files is expected to be | 58 | * used to replace older blocks in existing files is expected to be |
@@ -117,7 +117,7 @@ static inline void check_##type(void) \ | |||
117 | #define pure_ofs(ofs) (ofs & ~LOGFS_FULLY_POPULATED) | 117 | #define pure_ofs(ofs) (ofs & ~LOGFS_FULLY_POPULATED) |
118 | 118 | ||
119 | /* | 119 | /* |
120 | * LogFS needs to seperate data into levels. Each level is defined as the | 120 | * LogFS needs to separate data into levels. Each level is defined as the |
121 | * maximal possible distance from the master inode (inode of the inode file). | 121 | * maximal possible distance from the master inode (inode of the inode file). |
122 | * Data blocks reside on level 0, 1x indirect block on level 1, etc. | 122 | * Data blocks reside on level 0, 1x indirect block on level 1, etc. |
123 | * Inodes reside on level 6, indirect blocks for the inode file on levels 7-11. | 123 | * Inodes reside on level 6, indirect blocks for the inode file on levels 7-11. |
@@ -204,7 +204,7 @@ SIZE_CHECK(logfs_segment_header, LOGFS_SEGMENT_HEADERSIZE); | |||
204 | * @ds_crc: crc32 of structure starting with the next field | 204 | * @ds_crc: crc32 of structure starting with the next field |
205 | * @ds_ifile_levels: maximum number of levels for ifile | 205 | * @ds_ifile_levels: maximum number of levels for ifile |
206 | * @ds_iblock_levels: maximum number of levels for regular files | 206 | * @ds_iblock_levels: maximum number of levels for regular files |
207 | * @ds_data_levels: number of seperate levels for data | 207 | * @ds_data_levels: number of separate levels for data |
208 | * @pad0: reserved, must be 0 | 208 | * @pad0: reserved, must be 0 |
209 | * @ds_feature_incompat: incompatible filesystem features | 209 | * @ds_feature_incompat: incompatible filesystem features |
210 | * @ds_feature_ro_compat: read-only compatible filesystem features | 210 | * @ds_feature_ro_compat: read-only compatible filesystem features |
@@ -456,7 +456,7 @@ enum logfs_vim { | |||
456 | * @vim: life expectancy of data | 456 | * @vim: life expectancy of data |
457 | * | 457 | * |
458 | * "Areas" are segments currently being used for writing. There is at least | 458 | * "Areas" are segments currently being used for writing. There is at least |
459 | * one area per GC level. Several may be used to seperate long-living from | 459 | * one area per GC level. Several may be used to separate long-living from |
460 | * short-living data. If an area with unknown vim is encountered, it can | 460 | * short-living data. If an area with unknown vim is encountered, it can |
461 | * simply be closed. | 461 | * simply be closed. |
462 | * The write buffer immediately follow this header. | 462 | * The write buffer immediately follow this header. |