file.c (11e4afb49b7fa1fc8e1ffd850c1806dd86a08204) file.c (6a1a90ad1b0edb556a7550a6ef8a8756f0304dd5)
1/*
2 * linux/fs/fat/file.c
3 *
4 * Written 1992,1993 by Werner Almesberger
5 *
6 * regular file handling primitives for fat-based filesystems
7 */
8

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

441 }
442
443 if (attr->ia_valid & ATTR_SIZE) {
444 error = fat_setsize(inode, attr->ia_size);
445 if (error)
446 goto out;
447 }
448
1/*
2 * linux/fs/fat/file.c
3 *
4 * Written 1992,1993 by Werner Almesberger
5 *
6 * regular file handling primitives for fat-based filesystems
7 */
8

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

441 }
442
443 if (attr->ia_valid & ATTR_SIZE) {
444 error = fat_setsize(inode, attr->ia_size);
445 if (error)
446 goto out;
447 }
448
449 generic_setattr(inode, attr);
449 setattr_copy(inode, attr);
450 mark_inode_dirty(inode);
451out:
452 return error;
453}
454EXPORT_SYMBOL_GPL(fat_setattr);
455
456const struct inode_operations fat_file_inode_operations = {
457 .setattr = fat_setattr,
458 .getattr = fat_getattr,
459};
450 mark_inode_dirty(inode);
451out:
452 return error;
453}
454EXPORT_SYMBOL_GPL(fat_setattr);
455
456const struct inode_operations fat_file_inode_operations = {
457 .setattr = fat_setattr,
458 .getattr = fat_getattr,
459};