summaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2017-12-04 03:31:13 -0500
committerMatthew Wilcox <willy@infradead.org>2018-10-21 10:46:41 -0400
commit7f4446eefe9fbbe68e9543946c9a20f67897ff9b (patch)
tree343b3e3563a16c06e537c56c7836d8ccde059e64 /mm/shmem.c
parentef3038a573aa8bf2f3797b110f7244b55a0e519c (diff)
shmem: Comment fixups
Remove the last mentions of radix tree from various comments. Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 5588205f4259..56bf122e0bb4 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -763,7 +763,7 @@ void shmem_unlock_mapping(struct address_space *mapping)
763} 763}
764 764
765/* 765/*
766 * Remove range of pages and swap entries from radix tree, and free them. 766 * Remove range of pages and swap entries from page cache, and free them.
767 * If !unfalloc, truncate or punch hole; if unfalloc, undo failed fallocate. 767 * If !unfalloc, truncate or punch hole; if unfalloc, undo failed fallocate.
768 */ 768 */
769static void shmem_undo_range(struct inode *inode, loff_t lstart, loff_t lend, 769static void shmem_undo_range(struct inode *inode, loff_t lstart, loff_t lend,
@@ -1143,10 +1143,10 @@ static int shmem_unuse_inode(struct shmem_inode_info *info,
1143 * We needed to drop mutex to make that restrictive page 1143 * We needed to drop mutex to make that restrictive page
1144 * allocation, but the inode might have been freed while we 1144 * allocation, but the inode might have been freed while we
1145 * dropped it: although a racing shmem_evict_inode() cannot 1145 * dropped it: although a racing shmem_evict_inode() cannot
1146 * complete without emptying the radix_tree, our page lock 1146 * complete without emptying the page cache, our page lock
1147 * on this swapcache page is not enough to prevent that - 1147 * on this swapcache page is not enough to prevent that -
1148 * free_swap_and_cache() of our swap entry will only 1148 * free_swap_and_cache() of our swap entry will only
1149 * trylock_page(), removing swap from radix_tree whatever. 1149 * trylock_page(), removing swap from page cache whatever.
1150 * 1150 *
1151 * We must not proceed to shmem_add_to_page_cache() if the 1151 * We must not proceed to shmem_add_to_page_cache() if the
1152 * inode has been freed, but of course we cannot rely on 1152 * inode has been freed, but of course we cannot rely on
@@ -1212,7 +1212,7 @@ int shmem_unuse(swp_entry_t swap, struct page *page)
1212 &memcg, false); 1212 &memcg, false);
1213 if (error) 1213 if (error)
1214 goto out; 1214 goto out;
1215 /* No radix_tree_preload: swap entry keeps a place for page in tree */ 1215 /* No memory allocation: swap entry occupies the slot for the page */
1216 error = -EAGAIN; 1216 error = -EAGAIN;
1217 1217
1218 mutex_lock(&shmem_swaplist_mutex); 1218 mutex_lock(&shmem_swaplist_mutex);
@@ -1887,7 +1887,7 @@ unlock:
1887 spin_unlock_irq(&info->lock); 1887 spin_unlock_irq(&info->lock);
1888 goto repeat; 1888 goto repeat;
1889 } 1889 }
1890 if (error == -EEXIST) /* from above or from radix_tree_insert */ 1890 if (error == -EEXIST)
1891 goto repeat; 1891 goto repeat;
1892 return error; 1892 return error;
1893} 1893}
@@ -2501,7 +2501,7 @@ static ssize_t shmem_file_read_iter(struct kiocb *iocb, struct iov_iter *to)
2501} 2501}
2502 2502
2503/* 2503/*
2504 * llseek SEEK_DATA or SEEK_HOLE through the radix_tree. 2504 * llseek SEEK_DATA or SEEK_HOLE through the page cache.
2505 */ 2505 */
2506static pgoff_t shmem_seek_hole_data(struct address_space *mapping, 2506static pgoff_t shmem_seek_hole_data(struct address_space *mapping,
2507 pgoff_t index, pgoff_t end, int whence) 2507 pgoff_t index, pgoff_t end, int whence)