ps3flash.c (e29371d762df5bb35d2bc434ea266a046e5a0a75) | ps3flash.c (496ad9aa8ef448058e36ca7a787c61f2e63f0f54) |
---|---|
1/* 2 * PS3 FLASH ROM Storage Driver 3 * 4 * Copyright (C) 2007 Sony Computer Entertainment Inc. 5 * Copyright 2007 Sony Corp. 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published --- 298 unchanged lines hidden (view full) --- 307 308static int ps3flash_flush(struct file *file, fl_owner_t id) 309{ 310 return ps3flash_writeback(ps3flash_dev); 311} 312 313static int ps3flash_fsync(struct file *file, loff_t start, loff_t end, int datasync) 314{ | 1/* 2 * PS3 FLASH ROM Storage Driver 3 * 4 * Copyright (C) 2007 Sony Computer Entertainment Inc. 5 * Copyright 2007 Sony Corp. 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published --- 298 unchanged lines hidden (view full) --- 307 308static int ps3flash_flush(struct file *file, fl_owner_t id) 309{ 310 return ps3flash_writeback(ps3flash_dev); 311} 312 313static int ps3flash_fsync(struct file *file, loff_t start, loff_t end, int datasync) 314{ |
315 struct inode *inode = file->f_path.dentry->d_inode; | 315 struct inode *inode = file_inode(file); |
316 int err; 317 mutex_lock(&inode->i_mutex); 318 err = ps3flash_writeback(ps3flash_dev); 319 mutex_unlock(&inode->i_mutex); 320 return err; 321} 322 323static irqreturn_t ps3flash_interrupt(int irq, void *data) --- 159 unchanged lines hidden --- | 316 int err; 317 mutex_lock(&inode->i_mutex); 318 err = ps3flash_writeback(ps3flash_dev); 319 mutex_unlock(&inode->i_mutex); 320 return err; 321} 322 323static irqreturn_t ps3flash_interrupt(int irq, void *data) --- 159 unchanged lines hidden --- |