summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2017-12-05 01:33:30 +0100
committerMatthew Wilcox <willy@infradead.org>2018-11-05 20:57:05 +0100
commitfe2b51145c9ffd5a49013fe180e42e92ef0e6df9 (patch)
treec93a78aa4d210258760de5863c1dbe72e5a7f8a8
parentXArray: Export __xa_foo to non-GPL modules (diff)
downloadlinux-fe2b51145c9ffd5a49013fe180e42e92ef0e6df9.tar.xz
linux-fe2b51145c9ffd5a49013fe180e42e92ef0e6df9.zip
nilfs2: Use xa_erase_irq
This code simply opencoded xa_erase_irq(). Signed-off-by: Matthew Wilcox <willy@infradead.org>
-rw-r--r--fs/nilfs2/btnode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nilfs2/btnode.c b/fs/nilfs2/btnode.c
index de99db518571..f2129a5d9f23 100644
--- a/fs/nilfs2/btnode.c
+++ b/fs/nilfs2/btnode.c
@@ -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);