int sf_write_begin(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, void **fsdata) { TRACE(); return simple_write_begin(file, mapping, pos, len, flags, pagep, fsdata); }
int yramfs_file_writebegin(struct file *pfile, struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, void **fsdata) { DBG_PRINT("write begin"); return simple_write_begin(pfile, mapping, pos, len, flags, pagep, fsdata); }
static int rawfs_write_begin(struct file *filp, struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, void **fsdata) { RAWFS_PRINT(RAWFS_DBG_FILE, "rawfs_write_begin: unexpected call !"); BUG(); return simple_write_begin(filp, mapping, pos, len, flags, pagep, fsdata); }
int sjfs_aops_write_begin(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, void **fsdata) { printk("sjfs_aops_write_begin -> simple_write_begin(\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("--- flags: %u\n", flags); printk("--- pagep: ???)\n"); return simple_write_begin(file, mapping, pos, len, flags, pagep, fsdata); }