Skip to content

Commit cdd81b3

Browse files
konistorvalds
authored andcommitted
nilfs2: get rid of nilfs_mapping_init()
After applying the lockdep warning fixes, nilfs_mapping_init() is no longer used, so delete it. Link: https://lkml.kernel.org/r/1647867427-30498-4-git-send-email-konishi.ryusuke@gmail.com Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com> Cc: David Hildenbrand <david@redhat.com> Cc: Hao Sun <sunhao.th@gmail.com> Cc: Matthew Wilcox <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 6e21193 commit cdd81b3

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

fs/nilfs2/page.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -436,15 +436,6 @@ unsigned int nilfs_page_count_clean_buffers(struct page *page,
436436
return nc;
437437
}
438438

439-
void nilfs_mapping_init(struct address_space *mapping, struct inode *inode)
440-
{
441-
mapping->host = inode;
442-
mapping->flags = 0;
443-
mapping_set_gfp_mask(mapping, GFP_NOFS);
444-
mapping->private_data = NULL;
445-
mapping->a_ops = &empty_aops;
446-
}
447-
448439
/*
449440
* NILFS2 needs clear_page_dirty() in the following two cases:
450441
*

fs/nilfs2/page.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ int nilfs_copy_dirty_pages(struct address_space *, struct address_space *);
4343
void nilfs_copy_back_pages(struct address_space *, struct address_space *);
4444
void nilfs_clear_dirty_page(struct page *, bool);
4545
void nilfs_clear_dirty_pages(struct address_space *, bool);
46-
void nilfs_mapping_init(struct address_space *mapping, struct inode *inode);
4746
unsigned int nilfs_page_count_clean_buffers(struct page *, unsigned int,
4847
unsigned int);
4948
unsigned long nilfs_find_uncommitted_extent(struct inode *inode,

0 commit comments

Comments
 (0)