Skip to content

Commit fe2b511

Browse files
author
Matthew Wilcox
committed
nilfs2: Use xa_erase_irq
This code simply opencoded xa_erase_irq(). Signed-off-by: Matthew Wilcox <willy@infradead.org>
1 parent 9ee5a3b commit fe2b511

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎fs/nilfs2/btnode.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,7 @@ void nilfs_btnode_abort_change_key(struct address_space *btnc,
266266
return;
267267

268268
if (nbh == NULL) { /* blocksize == pagesize */
269-
xa_lock_irq(&btnc->i_pages);
270-
__xa_erase(&btnc->i_pages, newkey);
271-
xa_unlock_irq(&btnc->i_pages);
269+
xa_erase_irq(&btnc->i_pages, newkey);
272270
unlock_page(ctxt->bh->b_page);
273271
} else
274272
brelse(nbh);

0 commit comments

Comments
 (0)