inode.c (a6cbcd4a4a85e2fdb0b3344b88df2e8b3d526b9e) inode.c (31b140398ce56ab41646eda7f02bcb78d6a4c916)
1/*
2 * inode.c
3 *
4 * PURPOSE
5 * Inode handling routines for the OSTA-UDF(tm) filesystem.
6 *
7 * COPYRIGHT
8 * This file is distributed under the terms of the GNU General Public

--- 212 unchanged lines hidden (view full) ---

221 loff_t offset)
222{
223 struct file *file = iocb->ki_filp;
224 struct address_space *mapping = file->f_mapping;
225 struct inode *inode = mapping->host;
226 size_t count = iov_iter_count(iter);
227 ssize_t ret;
228
1/*
2 * inode.c
3 *
4 * PURPOSE
5 * Inode handling routines for the OSTA-UDF(tm) filesystem.
6 *
7 * COPYRIGHT
8 * This file is distributed under the terms of the GNU General Public

--- 212 unchanged lines hidden (view full) ---

221 loff_t offset)
222{
223 struct file *file = iocb->ki_filp;
224 struct address_space *mapping = file->f_mapping;
225 struct inode *inode = mapping->host;
226 size_t count = iov_iter_count(iter);
227 ssize_t ret;
228
229 ret = blockdev_direct_IO(rw, iocb, inode, iter->iov, offset, iter->nr_segs,
230 udf_get_block);
229 ret = blockdev_direct_IO(rw, iocb, inode, iter, offset, udf_get_block);
231 if (unlikely(ret < 0 && (rw & WRITE)))
232 udf_write_failed(mapping, offset + count);
233 return ret;
234}
235
236static sector_t udf_bmap(struct address_space *mapping, sector_t block)
237{
238 return generic_block_bmap(mapping, block, udf_get_block);

--- 2041 unchanged lines hidden ---
230 if (unlikely(ret < 0 && (rw & WRITE)))
231 udf_write_failed(mapping, offset + count);
232 return ret;
233}
234
235static sector_t udf_bmap(struct address_space *mapping, sector_t block)
236{
237 return generic_block_bmap(mapping, block, udf_get_block);

--- 2041 unchanged lines hidden ---