int yramfs_file_writeend(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct page *page, void *fsdata) { DBG_PRINT("write end"); return simple_write_end(file, mapping, pos, len, copied, page, fsdata); }
static int rawfs_write_end(struct file *filp, struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct page *pg, void *fsdata) { RAWFS_PRINT(RAWFS_DBG_FILE, "rawfs_write_end: unexpected call !"); BUG(); return simple_write_end(filp, mapping, pos, len, copied, pg, fsdata); }
static int udf_adinicb_write_end(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct page *page, void *fsdata) { struct inode *inode = mapping->host; unsigned offset = pos & (PAGE_CACHE_SIZE - 1); char *kaddr; struct udf_inode_info *iinfo = UDF_I(inode); kaddr = kmap_atomic(page, KM_USER0); memcpy(iinfo->i_ext.i_data + iinfo->i_lenEAttr + offset, kaddr + offset, copied); kunmap_atomic(kaddr, KM_USER0); return simple_write_end(file, mapping, pos, len, copied, page, fsdata); }
int sjfs_aops_write_end(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct page *page, void *fsdata) { printk("sjfs_aops_write_end -> simple_write_endi(\n"); if(file && &(file->f_path) != NULL && file->f_path.dentry != NULL && &(file->f_path.dentry->d_name) != NULL && file->f_path.dentry->d_name.name != NULL) { printk("--- file.path: \"%s\");\n", file->f_path.dentry->d_name.name); } else { printk("--- file.path: NULL);\n"); } if(mapping && mapping->host) { printk("--- mapping.host: %lu\n", mapping->host->i_ino); } else { printk("--- mapping.host: NULL\n"); } printk("--- pos: %lli\n", pos); printk("--- len: %u\n", len); printk("--- copied: %u\n", copied); printk("--- page: ???)\n"); return simple_write_end(file, mapping, pos, len, copied, page, fsdata); }