mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] remove ->get_blocks() support
Now that get_block() can handle mapping multiple disk blocks, no need to have ->get_blocks(). This patch removes fs specific ->get_blocks() added for DIO and makes it users use get_block() instead. Signed-off-by: Badari Pulavarty <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
fa30bd058b
commit
1d8fa7a2b9
12 changed files with 34 additions and 78 deletions
|
|
@ -93,17 +93,6 @@ static int hfsplus_releasepage(struct page *page, gfp_t mask)
|
|||
return res ? try_to_free_buffers(page) : 0;
|
||||
}
|
||||
|
||||
static int hfsplus_get_blocks(struct inode *inode, sector_t iblock, unsigned long max_blocks,
|
||||
struct buffer_head *bh_result, int create)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = hfsplus_get_block(inode, iblock, bh_result, create);
|
||||
if (!ret)
|
||||
bh_result->b_size = (1 << inode->i_blkbits);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static ssize_t hfsplus_direct_IO(int rw, struct kiocb *iocb,
|
||||
const struct iovec *iov, loff_t offset, unsigned long nr_segs)
|
||||
{
|
||||
|
|
@ -111,7 +100,7 @@ static ssize_t hfsplus_direct_IO(int rw, struct kiocb *iocb,
|
|||
struct inode *inode = file->f_dentry->d_inode->i_mapping->host;
|
||||
|
||||
return blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov,
|
||||
offset, nr_segs, hfsplus_get_blocks, NULL);
|
||||
offset, nr_segs, hfsplus_get_block, NULL);
|
||||
}
|
||||
|
||||
static int hfsplus_writepages(struct address_space *mapping,
|
||||
|
|
|
|||
Loading…
Reference in a new issue