fs: export inode_to_bdi and use it in favor of mapping->backing_dev_info
Now that we got rid of the bdi abuse on character devices we can always use sb->s_bdi to get at the backing_dev_info for a file, except for the block device special case. Export inode_to_bdi and replace uses of mapping->backing_dev_info with it to prepare for the removal of mapping->backing_dev_info. Signed-off-by:Christoph Hellwig <hch@lst.de> Reviewed-by:
Tejun Heo <tj@kernel.org> Reviewed-by:
Jan Kara <jack@suse.cz> Signed-off-by:
Jens Axboe <axboe@fb.com>
Showing
- fs/btrfs/file.c 1 addition, 1 deletionfs/btrfs/file.c
- fs/ceph/file.c 1 addition, 1 deletionfs/ceph/file.c
- fs/ext2/ialloc.c 1 addition, 1 deletionfs/ext2/ialloc.c
- fs/ext4/super.c 1 addition, 1 deletionfs/ext4/super.c
- fs/fs-writeback.c 2 additions, 1 deletionfs/fs-writeback.c
- fs/fuse/file.c 5 additions, 5 deletionsfs/fuse/file.c
- fs/gfs2/aops.c 1 addition, 1 deletionfs/gfs2/aops.c
- fs/gfs2/super.c 1 addition, 1 deletionfs/gfs2/super.c
- fs/nfs/filelayout/filelayout.c 1 addition, 1 deletionfs/nfs/filelayout/filelayout.c
- fs/nfs/write.c 3 additions, 3 deletionsfs/nfs/write.c
- fs/ntfs/file.c 2 additions, 1 deletionfs/ntfs/file.c
- fs/ocfs2/file.c 1 addition, 1 deletionfs/ocfs2/file.c
- fs/xfs/xfs_file.c 1 addition, 1 deletionfs/xfs/xfs_file.c
- include/linux/backing-dev.h 4 additions, 2 deletionsinclude/linux/backing-dev.h
- include/trace/events/writeback.h 3 additions, 3 deletionsinclude/trace/events/writeback.h
- mm/fadvise.c 2 additions, 2 deletionsmm/fadvise.c
- mm/filemap.c 2 additions, 2 deletionsmm/filemap.c
- mm/filemap_xip.c 2 additions, 1 deletionmm/filemap_xip.c
- mm/page-writeback.c 13 additions, 16 deletionsmm/page-writeback.c
- mm/readahead.c 2 additions, 2 deletionsmm/readahead.c
Loading
Please register or sign in to comment