projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
319a12c
)
nilfs2: convert nilfs_gccache_submit_read_data to use a folio
author
Matthew Wilcox (Oracle)
<willy@infradead.org>
Tue, 14 Nov 2023 08:44:30 +0000
(17:44 +0900)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 11 Dec 2023 01:21:29 +0000
(17:21 -0800)
Saves two calls to compound_head().
Link:
https://lkml.kernel.org/r/20231114084436.2755-15-konishi.ryusuke@gmail.com
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nilfs2/gcinode.c
patch
|
blob
|
history
diff --git
a/fs/nilfs2/gcinode.c
b/fs/nilfs2/gcinode.c
index 8beb2730929d43578ad9b22a721201bb4540237d..bf9a11d588172214b60569edf60e2fb1cd72b59d 100644
(file)
--- a/
fs/nilfs2/gcinode.c
+++ b/
fs/nilfs2/gcinode.c
@@
-98,8
+98,8
@@
int nilfs_gccache_submit_read_data(struct inode *inode, sector_t blkoff,
*out_bh = bh;
failed:
-
unlock_page(bh->b_page
);
-
put_page(bh->b_page
);
+
folio_unlock(bh->b_folio
);
+
folio_put(bh->b_folio
);
if (unlikely(err))
brelse(bh);
return err;