diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-01 19:39:03 -0400 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-01-12 08:16:30 +0100 |
commit | a594c8a7f67f0d4295b9e7f8ecbed77898a9d96c (patch) | |
tree | cd7e8c1eaf868c95be059367fd7c36e859356448 /cpukit/libfs/src/jffs2/src/gc.c | |
parent | jffs2: fix memory leak in jffs2_scan_medium (diff) | |
download | rtems-a594c8a7f67f0d4295b9e7f8ecbed77898a9d96c.tar.bz2 |
jffs2: Pass the file pointer to jffs2_do_readpage_unlock()
In preparation for unifying the read_cache_page() and read_folio()
implementations, make jffs2_do_readpage_unlock() get the inode
from the page instead of passing it in from read_cache_page().
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '')
-rw-r--r-- | cpukit/libfs/src/jffs2/src/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/jffs2/src/gc.c b/cpukit/libfs/src/jffs2/src/gc.c index 04ec073d2b..a8b742c899 100644 --- a/cpukit/libfs/src/jffs2/src/gc.c +++ b/cpukit/libfs/src/jffs2/src/gc.c @@ -1340,7 +1340,7 @@ static int jffs2_garbage_collect_dnode(struct jffs2_sb_info *c, struct jffs2_era mutex_unlock(&f->sem); #ifndef __rtems__ page = read_cache_page(inode->i_mapping, start >> PAGE_SHIFT, - jffs2_do_readpage_unlock, inode); + jffs2_do_readpage_unlock, NULL); if (IS_ERR(page)) { pr_warn("read_cache_page() returned error: %ld\n", PTR_ERR(page)); |