inode.c (f4e420dc423148fba637af1ab618fa8896dfb2d6) | inode.c (155130a4f7848b1aac439cab6bda1a175507c71c) |
---|---|
1/* 2 * linux/fs/ext2/inode.c 3 * 4 * Copyright (C) 1992, 1993, 1994, 1995 5 * Remy Card (card@masi.ibp.fr) 6 * Laboratoire MASI - Institut Blaise Pascal 7 * Universite Pierre et Marie Curie (Paris VI) 8 * --- 758 unchanged lines hidden (view full) --- 767 768static int 769ext2_write_begin(struct file *file, struct address_space *mapping, 770 loff_t pos, unsigned len, unsigned flags, 771 struct page **pagep, void **fsdata) 772{ 773 int ret; 774 | 1/* 2 * linux/fs/ext2/inode.c 3 * 4 * Copyright (C) 1992, 1993, 1994, 1995 5 * Remy Card (card@masi.ibp.fr) 6 * Laboratoire MASI - Institut Blaise Pascal 7 * Universite Pierre et Marie Curie (Paris VI) 8 * --- 758 unchanged lines hidden (view full) --- 767 768static int 769ext2_write_begin(struct file *file, struct address_space *mapping, 770 loff_t pos, unsigned len, unsigned flags, 771 struct page **pagep, void **fsdata) 772{ 773 int ret; 774 |
775 *pagep = NULL; 776 ret = block_write_begin_newtrunc(file, mapping, pos, len, flags, 777 pagep, fsdata, ext2_get_block); | 775 ret = block_write_begin(mapping, pos, len, flags, pagep, 776 ext2_get_block); |
778 if (ret < 0) 779 ext2_write_failed(mapping, pos + len); 780 return ret; 781} 782 783static int ext2_write_end(struct file *file, struct address_space *mapping, 784 loff_t pos, unsigned len, unsigned copied, 785 struct page *page, void *fsdata) --- 769 unchanged lines hidden --- | 777 if (ret < 0) 778 ext2_write_failed(mapping, pos + len); 779 return ret; 780} 781 782static int ext2_write_end(struct file *file, struct address_space *mapping, 783 loff_t pos, unsigned len, unsigned copied, 784 struct page *page, void *fsdata) --- 769 unchanged lines hidden --- |