summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2017-12-04 19:33:30 -0500
committerMatthew Wilcox <willy@infradead.org>2018-11-05 14:57:05 -0500
commitfe2b51145c9ffd5a49013fe180e42e92ef0e6df9 (patch)
treec93a78aa4d210258760de5863c1dbe72e5a7f8a8 /fs
parent9ee5a3b7eeb190eb413e0fac3246022bd1baa05d (diff)
downloadlinux-fe2b51145c9ffd5a49013fe180e42e92ef0e6df9.tar.bz2
nilfs2: Use xa_erase_irq
This code simply opencoded xa_erase_irq(). Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'fs')
-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);