diff options
author | Matthew Wilcox <willy@infradead.org> | 2017-12-05 01:33:30 +0100 |
---|---|---|
committer | Matthew Wilcox <willy@infradead.org> | 2018-11-05 20:57:05 +0100 |
commit | fe2b51145c9ffd5a49013fe180e42e92ef0e6df9 (patch) | |
tree | c93a78aa4d210258760de5863c1dbe72e5a7f8a8 /fs/nilfs2/btnode.c | |
parent | XArray: Export __xa_foo to non-GPL modules (diff) | |
download | linux-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>
Diffstat (limited to 'fs/nilfs2/btnode.c')
-rw-r--r-- | fs/nilfs2/btnode.c | 4 |
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); |