History

fs: mark __generic_block_fiemap static

There is no caller left outside of ioctl.c.

Christoph Hellwig committed 6 years ago

Commit 44ebcd01 parent da565e72 files · +1 −7Browse files

Unified · Split

2 files
  1. fs/ioctl.c +1 −3
  2. include/linux/fs.h +0 −4
fs/ioctl.c+1−3
@@ -307,8 +307,7 @@ static inline loff_t blk_to_logical(struct inode *inode, sector_t blk) · 306 unmodified lines
307 * If you use this function directly, you need to do your own locking. Use307 * If you use this function directly, you need to do your own locking. Use
308 * generic_block_fiemap if you want the locking done for you.308 * generic_block_fiemap if you want the locking done for you.
309 */309 */
310 310static int __generic_block_fiemap(struct inode *inode,
311int __generic_block_fiemap(struct inode *inode,
312 struct fiemap_extent_info *fieinfo, loff_t start,311 struct fiemap_extent_info *fieinfo, loff_t start,
313 loff_t len, get_block_t *get_block)312 loff_t len, get_block_t *get_block)
314{313{
@@ -453,7 +452,6 @@ int __generic_block_fiemap(struct inode *inode, · 138 unmodified lines
453 452
454 return ret;453 return ret;
455}454}
456EXPORT_SYMBOL(__generic_block_fiemap);
457 455
458/**456/**
459 * generic_block_fiemap - FIEMAP for block based inodes457 * generic_block_fiemap - FIEMAP for block based inodes
include/linux/fs.h+0−4
@@ -3299,10 +3299,6 @@ static inline int vfs_fstat(int fd, struct kstat *stat) · 3298 unmodified lines
3299extern const char *vfs_get_link(struct dentry *, struct delayed_call *);3299extern const char *vfs_get_link(struct dentry *, struct delayed_call *);
3300extern int vfs_readlink(struct dentry *, char __user *, int);3300extern int vfs_readlink(struct dentry *, char __user *, int);
3301 3301
3302extern int __generic_block_fiemap(struct inode *inode,
3303 struct fiemap_extent_info *fieinfo,
3304 loff_t start, loff_t len,
3305 get_block_t *get_block);
3306extern int generic_block_fiemap(struct inode *inode,3302extern int generic_block_fiemap(struct inode *inode,
3307 struct fiemap_extent_info *fieinfo, u64 start,3303 struct fiemap_extent_info *fieinfo, u64 start,
3308 u64 len, get_block_t *get_block);3304 u64 len, get_block_t *get_block);