Skip to content

Commit

Permalink
ufs: remove ufs_get_locked_page()
Browse files Browse the repository at this point in the history
Both callers are now converted to ufs_get_locked_folio().

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Cc: Andreas Gruenbacher <[email protected]>
Cc: Pankaj Raghav <[email protected]>
Cc: Ryusuke Konishi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
Matthew Wilcox (Oracle) authored and akpm00 committed Oct 25, 2023
1 parent c7e8812 commit c9f2480
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
9 changes: 0 additions & 9 deletions fs/ufs/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,6 @@ ufs_set_inode_dev(struct super_block *sb, struct ufs_inode_info *ufsi, dev_t dev
ufsi->i_u1.i_data[0] = cpu_to_fs32(sb, fs32);
}

struct page *ufs_get_locked_page(struct address_space *mapping, pgoff_t index)
{
struct folio *folio = ufs_get_locked_folio(mapping, index);

if (folio)
return folio_file_page(folio, index);
return NULL;
}

/**
* ufs_get_locked_folio() - locate, pin and lock a pagecache folio, if not exist
* read it from disk.
Expand Down
7 changes: 0 additions & 7 deletions fs/ufs/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,20 +273,13 @@ extern void _ubh_ubhcpymem_(struct ufs_sb_private_info *, unsigned char *, struc
extern void _ubh_memcpyubh_(struct ufs_sb_private_info *, struct ufs_buffer_head *, unsigned char *, unsigned);

/* This functions works with cache pages*/
struct page *ufs_get_locked_page(struct address_space *mapping, pgoff_t index);
struct folio *ufs_get_locked_folio(struct address_space *mapping, pgoff_t index);
static inline void ufs_put_locked_folio(struct folio *folio)
{
folio_unlock(folio);
folio_put(folio);
}

static inline void ufs_put_locked_page(struct page *page)
{
ufs_put_locked_folio(page_folio(page));
}


/*
* macros and inline function to get important structures from ufs_sb_private_info
*/
Expand Down

0 comments on commit c9f2480

Please sign in to comment.