projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a5cad8
)
nilfs2: convert nilfs_mdt_create_block to use a folio
author
Matthew Wilcox (Oracle)
<willy@infradead.org>
Tue, 14 Nov 2023 08:44:28 +0000
(17:44 +0900)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 11 Dec 2023 01:21:28 +0000
(17:21 -0800)
Saves two calls to compound_head().
Link:
https://lkml.kernel.org/r/20231114084436.2755-13-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 2e7952ac2f673e96a5fdc346c1693f375cd769fa..7e4dcff2c94bccf2af35f2401910300f645113e2 100644
(file)
--- a/
fs/nilfs2/mdt.c
+++ b/
fs/nilfs2/mdt.c
@@
-97,8
+97,8
@@
static int nilfs_mdt_create_block(struct inode *inode, unsigned long block,
}
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_unlock: