Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

udf: Mark aops implementation static

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>

Jan Kara 759e4d74 37a8a39f

+10 -18
+10 -9
fs/udf/inode.c
··· 204 204 return 0; 205 205 } 206 206 207 - int udf_writepages(struct address_space *mapping, struct writeback_control *wbc) 207 + static int udf_writepages(struct address_space *mapping, 208 + struct writeback_control *wbc) 208 209 { 209 210 struct inode *inode = mapping->host; 210 211 struct udf_inode_info *iinfo = UDF_I(inode); ··· 215 214 return write_cache_pages(mapping, wbc, udf_adinicb_writepage, NULL); 216 215 } 217 216 218 - int udf_read_folio(struct file *file, struct folio *folio) 217 + static int udf_read_folio(struct file *file, struct folio *folio) 219 218 { 220 219 struct udf_inode_info *iinfo = UDF_I(file_inode(file)); 221 220 ··· 232 231 mpage_readahead(rac, udf_get_block); 233 232 } 234 233 235 - int udf_write_begin(struct file *file, struct address_space *mapping, 236 - loff_t pos, unsigned len, 237 - struct page **pagep, void **fsdata) 234 + static int udf_write_begin(struct file *file, struct address_space *mapping, 235 + loff_t pos, unsigned len, 236 + struct page **pagep, void **fsdata) 238 237 { 239 238 struct udf_inode_info *iinfo = UDF_I(file_inode(file)); 240 239 struct page *page; ··· 258 257 return 0; 259 258 } 260 259 261 - int udf_write_end(struct file *file, struct address_space *mapping, 262 - loff_t pos, unsigned len, unsigned copied, 263 - struct page *page, void *fsdata) 260 + static int udf_write_end(struct file *file, struct address_space *mapping, 261 + loff_t pos, unsigned len, unsigned copied, 262 + struct page *page, void *fsdata) 264 263 { 265 264 struct inode *inode = file_inode(file); 266 265 loff_t last_pos; ··· 278 277 return copied; 279 278 } 280 279 281 - ssize_t udf_direct_IO(struct kiocb *iocb, struct iov_iter *iter) 280 + static ssize_t udf_direct_IO(struct kiocb *iocb, struct iov_iter *iter) 282 281 { 283 282 struct file *file = iocb->ki_filp; 284 283 struct address_space *mapping = file->f_mapping;
-9
fs/udf/udfdecl.h
··· 158 158 extern int udf_setsize(struct inode *, loff_t); 159 159 extern void udf_evict_inode(struct inode *); 160 160 extern int udf_write_inode(struct inode *, struct writeback_control *wbc); 161 - int udf_read_folio(struct file *file, struct folio *folio); 162 - int udf_writepages(struct address_space *mapping, struct writeback_control *wbc); 163 - int udf_write_begin(struct file *file, struct address_space *mapping, 164 - loff_t pos, unsigned len, 165 - struct page **pagep, void **fsdata); 166 - int udf_write_end(struct file *file, struct address_space *mapping, 167 - loff_t pos, unsigned len, unsigned copied, 168 - struct page *page, void *fsdata); 169 - ssize_t udf_direct_IO(struct kiocb *iocb, struct iov_iter *iter); 170 161 extern int8_t inode_bmap(struct inode *, sector_t, struct extent_position *, 171 162 struct kernel_lb_addr *, uint32_t *, sector_t *); 172 163 int udf_get_block(struct inode *, sector_t, struct buffer_head *, int);