nilfs2: Use xa_erase_irq
authorMatthew Wilcox <willy@infradead.org>
Tue, 5 Dec 2017 00:33:30 +0000 (19:33 -0500)
committerMatthew Wilcox <willy@infradead.org>
Mon, 5 Nov 2018 19:57:05 +0000 (14:57 -0500)
This code simply opencoded xa_erase_irq().

Signed-off-by: Matthew Wilcox <willy@infradead.org>
fs/nilfs2/btnode.c

index de99db518571bc3dd2334de753e2ffdb51e1b884..f2129a5d9f23720e039f354f7c90a6dce46a6954 100644 (file)
@@ -266,9 +266,7 @@ void nilfs_btnode_abort_change_key(struct address_space *btnc,
                return;
 
        if (nbh == NULL) {      /* blocksize == pagesize */
-               xa_lock_irq(&btnc->i_pages);
-               __xa_erase(&btnc->i_pages, newkey);
-               xa_unlock_irq(&btnc->i_pages);
+               xa_erase_irq(&btnc->i_pages, newkey);
                unlock_page(ctxt->bh->b_page);
        } else
                brelse(nbh);