ps3flash.c (42249094f79422fbf5ed4b54eeb48ff096809b8f) | ps3flash.c (5955102c9984fa081b2d570cfac75c97eecf8f3b) |
---|---|
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 --- 276 unchanged lines hidden (view full) --- 285{ 286 return ps3flash_writeback(ps3flash_dev); 287} 288 289static int ps3flash_fsync(struct file *file, loff_t start, loff_t end, int datasync) 290{ 291 struct inode *inode = file_inode(file); 292 int err; | 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 --- 276 unchanged lines hidden (view full) --- 285{ 286 return ps3flash_writeback(ps3flash_dev); 287} 288 289static int ps3flash_fsync(struct file *file, loff_t start, loff_t end, int datasync) 290{ 291 struct inode *inode = file_inode(file); 292 int err; |
293 mutex_lock(&inode->i_mutex); | 293 inode_lock(inode); |
294 err = ps3flash_writeback(ps3flash_dev); | 294 err = ps3flash_writeback(ps3flash_dev); |
295 mutex_unlock(&inode->i_mutex); | 295 inode_unlock(inode); |
296 return err; 297} 298 299static irqreturn_t ps3flash_interrupt(int irq, void *data) 300{ 301 struct ps3_storage_device *dev = data; 302 int res; 303 u64 tag, status; --- 155 unchanged lines hidden --- | 296 return err; 297} 298 299static irqreturn_t ps3flash_interrupt(int irq, void *data) 300{ 301 struct ps3_storage_device *dev = data; 302 int res; 303 u64 tag, status; --- 155 unchanged lines hidden --- |