projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83d9638
)
nilfs2: convert nilfs_mdt_submit_block to use a folio
author
Matthew Wilcox (Oracle)
<willy@infradead.org>
Tue, 14 Nov 2023 08:44:29 +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-14-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/mdt.c
patch
|
blob
|
history
diff --git
a/fs/nilfs2/mdt.c
b/fs/nilfs2/mdt.c
index 7e4dcff2c94bccf2af35f2401910300f645113e2..e45c01a559c0136f7392b06d4e47e78cb5cdb34c 100644
(file)
--- a/
fs/nilfs2/mdt.c
+++ b/
fs/nilfs2/mdt.c
@@
-158,8
+158,8
@@
nilfs_mdt_submit_block(struct inode *inode, unsigned long blkoff, blk_opf_t opf,
*out_bh = bh;
failed_bh:
-
unlock_page(bh->b_page
);
-
put_page(bh->b_page
);
+
folio_unlock(bh->b_folio
);
+
folio_put(bh->b_folio
);
brelse(bh);
failed:
return ret;