diff options
Diffstat (limited to 'Documentation/filesystems')
| -rw-r--r-- | Documentation/filesystems/Locking | 6 | ||||
| -rw-r--r-- | Documentation/filesystems/f2fs.txt | 9 | ||||
| -rw-r--r-- | Documentation/filesystems/vfs.txt | 20 |
3 files changed, 20 insertions, 15 deletions
diff --git a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking index e95d3131309e..fe7afe225381 100644 --- a/Documentation/filesystems/Locking +++ b/Documentation/filesystems/Locking | |||
| @@ -189,7 +189,7 @@ prototypes: | |||
| 189 | loff_t pos, unsigned len, unsigned copied, | 189 | loff_t pos, unsigned len, unsigned copied, |
| 190 | struct page *page, void *fsdata); | 190 | struct page *page, void *fsdata); |
| 191 | sector_t (*bmap)(struct address_space *, sector_t); | 191 | sector_t (*bmap)(struct address_space *, sector_t); |
| 192 | int (*invalidatepage) (struct page *, unsigned long); | 192 | void (*invalidatepage) (struct page *, unsigned int, unsigned int); |
| 193 | int (*releasepage) (struct page *, int); | 193 | int (*releasepage) (struct page *, int); |
| 194 | void (*freepage)(struct page *); | 194 | void (*freepage)(struct page *); |
| 195 | int (*direct_IO)(int, struct kiocb *, const struct iovec *iov, | 195 | int (*direct_IO)(int, struct kiocb *, const struct iovec *iov, |
| @@ -310,8 +310,8 @@ filesystems and by the swapper. The latter will eventually go away. Please, | |||
| 310 | keep it that way and don't breed new callers. | 310 | keep it that way and don't breed new callers. |
| 311 | 311 | ||
| 312 | ->invalidatepage() is called when the filesystem must attempt to drop | 312 | ->invalidatepage() is called when the filesystem must attempt to drop |
| 313 | some or all of the buffers from the page when it is being truncated. It | 313 | some or all of the buffers from the page when it is being truncated. It |
| 314 | returns zero on success. If ->invalidatepage is zero, the kernel uses | 314 | returns zero on success. If ->invalidatepage is zero, the kernel uses |
| 315 | block_invalidatepage() instead. | 315 | block_invalidatepage() instead. |
| 316 | 316 | ||
| 317 | ->releasepage() is called when the kernel is about to try to drop the | 317 | ->releasepage() is called when the kernel is about to try to drop the |
diff --git a/Documentation/filesystems/f2fs.txt b/Documentation/filesystems/f2fs.txt index bd3c56c67380..b91e2f26b672 100644 --- a/Documentation/filesystems/f2fs.txt +++ b/Documentation/filesystems/f2fs.txt | |||
| @@ -98,8 +98,13 @@ Cleaning Overhead | |||
| 98 | MOUNT OPTIONS | 98 | MOUNT OPTIONS |
| 99 | ================================================================================ | 99 | ================================================================================ |
| 100 | 100 | ||
| 101 | background_gc_off Turn off cleaning operations, namely garbage collection, | 101 | background_gc=%s Turn on/off cleaning operations, namely garbage |
| 102 | triggered in background when I/O subsystem is idle. | 102 | collection, triggered in background when I/O subsystem is |
| 103 | idle. If background_gc=on, it will turn on the garbage | ||
| 104 | collection and if background_gc=off, garbage collection | ||
| 105 | will be truned off. | ||
| 106 | Default value for this option is on. So garbage | ||
| 107 | collection is on by default. | ||
| 103 | disable_roll_forward Disable the roll-forward recovery routine | 108 | disable_roll_forward Disable the roll-forward recovery routine |
| 104 | discard Issue discard/TRIM commands when a segment is cleaned. | 109 | discard Issue discard/TRIM commands when a segment is cleaned. |
| 105 | no_heap Disable heap-style segment allocation which finds free | 110 | no_heap Disable heap-style segment allocation which finds free |
diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt index aeff462c7228..1f0ba30ae47e 100644 --- a/Documentation/filesystems/vfs.txt +++ b/Documentation/filesystems/vfs.txt | |||
| @@ -554,7 +554,7 @@ struct address_space_operations | |||
| 554 | ------------------------------- | 554 | ------------------------------- |
| 555 | 555 | ||
| 556 | This describes how the VFS can manipulate mapping of a file to page cache in | 556 | This describes how the VFS can manipulate mapping of a file to page cache in |
| 557 | your filesystem. As of kernel 2.6.22, the following members are defined: | 557 | your filesystem. The following members are defined: |
| 558 | 558 | ||
| 559 | struct address_space_operations { | 559 | struct address_space_operations { |
| 560 | int (*writepage)(struct page *page, struct writeback_control *wbc); | 560 | int (*writepage)(struct page *page, struct writeback_control *wbc); |
| @@ -571,7 +571,7 @@ struct address_space_operations { | |||
| 571 | loff_t pos, unsigned len, unsigned copied, | 571 | loff_t pos, unsigned len, unsigned copied, |
| 572 | struct page *page, void *fsdata); | 572 | struct page *page, void *fsdata); |
| 573 | sector_t (*bmap)(struct address_space *, sector_t); | 573 | sector_t (*bmap)(struct address_space *, sector_t); |
| 574 | int (*invalidatepage) (struct page *, unsigned long); | 574 | void (*invalidatepage) (struct page *, unsigned int, unsigned int); |
| 575 | int (*releasepage) (struct page *, int); | 575 | int (*releasepage) (struct page *, int); |
| 576 | void (*freepage)(struct page *); | 576 | void (*freepage)(struct page *); |
| 577 | ssize_t (*direct_IO)(int, struct kiocb *, const struct iovec *iov, | 577 | ssize_t (*direct_IO)(int, struct kiocb *, const struct iovec *iov, |
| @@ -690,14 +690,14 @@ struct address_space_operations { | |||
| 690 | invalidatepage: If a page has PagePrivate set, then invalidatepage | 690 | invalidatepage: If a page has PagePrivate set, then invalidatepage |
| 691 | will be called when part or all of the page is to be removed | 691 | will be called when part or all of the page is to be removed |
| 692 | from the address space. This generally corresponds to either a | 692 | from the address space. This generally corresponds to either a |
| 693 | truncation or a complete invalidation of the address space | 693 | truncation, punch hole or a complete invalidation of the address |
| 694 | (in the latter case 'offset' will always be 0). | 694 | space (in the latter case 'offset' will always be 0 and 'length' |
| 695 | Any private data associated with the page should be updated | 695 | will be PAGE_CACHE_SIZE). Any private data associated with the page |
| 696 | to reflect this truncation. If offset is 0, then | 696 | should be updated to reflect this truncation. If offset is 0 and |
| 697 | the private data should be released, because the page | 697 | length is PAGE_CACHE_SIZE, then the private data should be released, |
| 698 | must be able to be completely discarded. This may be done by | 698 | because the page must be able to be completely discarded. This may |
| 699 | calling the ->releasepage function, but in this case the | 699 | be done by calling the ->releasepage function, but in this case the |
| 700 | release MUST succeed. | 700 | release MUST succeed. |
| 701 | 701 | ||
| 702 | releasepage: releasepage is called on PagePrivate pages to indicate | 702 | releasepage: releasepage is called on PagePrivate pages to indicate |
| 703 | that the page should be freed if possible. ->releasepage | 703 | that the page should be freed if possible. ->releasepage |
