Skip to content

Commit

Permalink
udf: Mark aops implementation static
Browse files Browse the repository at this point in the history
Mark functions implementing aops static since they are not needed
outside of inode.c anymore.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
  • Loading branch information
Jan Kara committed Jan 26, 2023
1 parent 37a8a39 commit 759e4d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
19 changes: 10 additions & 9 deletions fs/udf/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ static int udf_adinicb_writepage(struct page *page,
return 0;
}

int udf_writepages(struct address_space *mapping, struct writeback_control *wbc)
static int udf_writepages(struct address_space *mapping,
struct writeback_control *wbc)
{
struct inode *inode = mapping->host;
struct udf_inode_info *iinfo = UDF_I(inode);
Expand All @@ -214,7 +215,7 @@ int udf_writepages(struct address_space *mapping, struct writeback_control *wbc)
return write_cache_pages(mapping, wbc, udf_adinicb_writepage, NULL);
}

int udf_read_folio(struct file *file, struct folio *folio)
static int udf_read_folio(struct file *file, struct folio *folio)
{
struct udf_inode_info *iinfo = UDF_I(file_inode(file));

Expand All @@ -231,9 +232,9 @@ static void udf_readahead(struct readahead_control *rac)
mpage_readahead(rac, udf_get_block);
}

int udf_write_begin(struct file *file, struct address_space *mapping,
loff_t pos, unsigned len,
struct page **pagep, void **fsdata)
static int udf_write_begin(struct file *file, struct address_space *mapping,
loff_t pos, unsigned len,
struct page **pagep, void **fsdata)
{
struct udf_inode_info *iinfo = UDF_I(file_inode(file));
struct page *page;
Expand All @@ -257,9 +258,9 @@ int udf_write_begin(struct file *file, struct address_space *mapping,
return 0;
}

int udf_write_end(struct file *file, struct address_space *mapping,
loff_t pos, unsigned len, unsigned copied,
struct page *page, void *fsdata)
static int udf_write_end(struct file *file, struct address_space *mapping,
loff_t pos, unsigned len, unsigned copied,
struct page *page, void *fsdata)
{
struct inode *inode = file_inode(file);
loff_t last_pos;
Expand All @@ -277,7 +278,7 @@ int udf_write_end(struct file *file, struct address_space *mapping,
return copied;
}

ssize_t udf_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
static ssize_t udf_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
{
struct file *file = iocb->ki_filp;
struct address_space *mapping = file->f_mapping;
Expand Down
9 changes: 0 additions & 9 deletions fs/udf/udfdecl.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,6 @@ extern struct buffer_head *udf_bread(struct inode *inode, udf_pblk_t block,
extern int udf_setsize(struct inode *, loff_t);
extern void udf_evict_inode(struct inode *);
extern int udf_write_inode(struct inode *, struct writeback_control *wbc);
int udf_read_folio(struct file *file, struct folio *folio);
int udf_writepages(struct address_space *mapping, struct writeback_control *wbc);
int udf_write_begin(struct file *file, struct address_space *mapping,
loff_t pos, unsigned len,
struct page **pagep, void **fsdata);
int udf_write_end(struct file *file, struct address_space *mapping,
loff_t pos, unsigned len, unsigned copied,
struct page *page, void *fsdata);
ssize_t udf_direct_IO(struct kiocb *iocb, struct iov_iter *iter);
extern int8_t inode_bmap(struct inode *, sector_t, struct extent_position *,
struct kernel_lb_addr *, uint32_t *, sector_t *);
int udf_get_block(struct inode *, sector_t, struct buffer_head *, int);
Expand Down

0 comments on commit 759e4d7

Please sign in to comment.