inode.c (a6cbcd4a4a85e2fdb0b3344b88df2e8b3d526b9e) inode.c (31b140398ce56ab41646eda7f02bcb78d6a4c916)
1/*
2 * linux/fs/hfs/inode.c
3 *
4 * Copyright (C) 1995-1997 Paul H. Hargrove
5 * (C) 2003 Ardis Technologies <roman@ardistech.com>
6 * This file may be distributed under the terms of the GNU General Public License.
7 *
8 * This file contains inode-related functions which do not depend on

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

128 struct iov_iter *iter, loff_t offset)
129{
130 struct file *file = iocb->ki_filp;
131 struct address_space *mapping = file->f_mapping;
132 struct inode *inode = file_inode(file)->i_mapping->host;
133 size_t count = iov_iter_count(iter);
134 ssize_t ret;
135
1/*
2 * linux/fs/hfs/inode.c
3 *
4 * Copyright (C) 1995-1997 Paul H. Hargrove
5 * (C) 2003 Ardis Technologies <roman@ardistech.com>
6 * This file may be distributed under the terms of the GNU General Public License.
7 *
8 * This file contains inode-related functions which do not depend on

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

128 struct iov_iter *iter, loff_t offset)
129{
130 struct file *file = iocb->ki_filp;
131 struct address_space *mapping = file->f_mapping;
132 struct inode *inode = file_inode(file)->i_mapping->host;
133 size_t count = iov_iter_count(iter);
134 ssize_t ret;
135
136 ret = blockdev_direct_IO(rw, iocb, inode, iter->iov, offset,
137 iter->nr_segs, hfs_get_block);
136 ret = blockdev_direct_IO(rw, iocb, inode, iter, offset, hfs_get_block);
138
139 /*
140 * In case of error extending write may have instantiated a few
141 * blocks outside i_size. Trim these off again.
142 */
143 if (unlikely((rw & WRITE) && ret < 0)) {
144 loff_t isize = i_size_read(inode);
145 loff_t end = offset + count;

--- 550 unchanged lines hidden ---
137
138 /*
139 * In case of error extending write may have instantiated a few
140 * blocks outside i_size. Trim these off again.
141 */
142 if (unlikely((rw & WRITE) && ret < 0)) {
143 loff_t isize = i_size_read(inode);
144 loff_t end = offset + count;

--- 550 unchanged lines hidden ---