inode.c (a6cbcd4a4a85e2fdb0b3344b88df2e8b3d526b9e) inode.c (31b140398ce56ab41646eda7f02bcb78d6a4c916)
1/*
2 * linux/fs/fat/inode.c
3 *
4 * Written 1992,1993 by Werner Almesberger
5 * VFAT extensions by Gordon Chaffee, merged with msdos fs by Henrik Storner
6 * Rewritten for the constant inumbers support by Al Viro
7 *
8 * Fixes:

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

208 if (MSDOS_I(inode)->mmu_private < size)
209 return 0;
210 }
211
212 /*
213 * FAT need to use the DIO_LOCKING for avoiding the race
214 * condition of fat_get_block() and ->truncate().
215 */
1/*
2 * linux/fs/fat/inode.c
3 *
4 * Written 1992,1993 by Werner Almesberger
5 * VFAT extensions by Gordon Chaffee, merged with msdos fs by Henrik Storner
6 * Rewritten for the constant inumbers support by Al Viro
7 *
8 * Fixes:

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

208 if (MSDOS_I(inode)->mmu_private < size)
209 return 0;
210 }
211
212 /*
213 * FAT need to use the DIO_LOCKING for avoiding the race
214 * condition of fat_get_block() and ->truncate().
215 */
216 ret = blockdev_direct_IO(rw, iocb, inode, iter->iov, offset,
217 iter->nr_segs, fat_get_block);
216 ret = blockdev_direct_IO(rw, iocb, inode, iter, offset, fat_get_block);
218 if (ret < 0 && (rw & WRITE))
219 fat_write_failed(mapping, offset + count);
220
221 return ret;
222}
223
224static sector_t _fat_bmap(struct address_space *mapping, sector_t block)
225{

--- 1434 unchanged lines hidden ---
217 if (ret < 0 && (rw & WRITE))
218 fat_write_failed(mapping, offset + count);
219
220 return ret;
221}
222
223static sector_t _fat_bmap(struct address_space *mapping, sector_t block)
224{

--- 1434 unchanged lines hidden ---