inode.c (a6cbcd4a4a85e2fdb0b3344b88df2e8b3d526b9e) inode.c (31b140398ce56ab41646eda7f02bcb78d6a4c916)
1/*
2 * linux/fs/hfsplus/inode.c
3 *
4 * Copyright (C) 2001
5 * Brad Boyer (flar@allandria.com)
6 * (C) 2003 Ardis Technologies <roman@ardistech.com>
7 *
8 * Inode handling routines

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

126 struct iov_iter *iter, loff_t offset)
127{
128 struct file *file = iocb->ki_filp;
129 struct address_space *mapping = file->f_mapping;
130 struct inode *inode = file_inode(file)->i_mapping->host;
131 size_t count = iov_iter_count(iter);
132 ssize_t ret;
133
1/*
2 * linux/fs/hfsplus/inode.c
3 *
4 * Copyright (C) 2001
5 * Brad Boyer (flar@allandria.com)
6 * (C) 2003 Ardis Technologies <roman@ardistech.com>
7 *
8 * Inode handling routines

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

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

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

--- 472 unchanged lines hidden ---