X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fcoda%2Ffile.c;h=dbfbcfa5b3c064855f377949a9470bd6aab63a2e;hb=e0b4096d34fbd6b30838c417100c9d0ef73c71f2;hp=146a991d6eb5890349165a59dc6c203daea5a556;hpb=d71eecf3b8e893757cc3dec560c96a32ac090890;p=powerpc.git diff --git a/fs/coda/file.c b/fs/coda/file.c index 146a991d6e..dbfbcfa5b3 100644 --- a/fs/coda/file.c +++ b/fs/coda/file.c @@ -136,10 +136,8 @@ int coda_open(struct inode *coda_inode, struct file *coda_file) coda_vfs_stat.open++; cfi = kmalloc(sizeof(struct coda_file_info), GFP_KERNEL); - if (!cfi) { - unlock_kernel(); + if (!cfi) return -ENOMEM; - } lock_kernel(); @@ -164,7 +162,7 @@ int coda_open(struct inode *coda_inode, struct file *coda_file) return 0; } -int coda_flush(struct file *coda_file) +int coda_flush(struct file *coda_file, fl_owner_t id) { unsigned short flags = coda_file->f_flags & ~O_EXCL; unsigned short coda_flags = coda_flags_to_cflags(flags); @@ -288,7 +286,7 @@ int coda_fsync(struct file *coda_file, struct dentry *coda_dentry, int datasync) return err; } -struct file_operations coda_file_operations = { +const struct file_operations coda_file_operations = { .llseek = generic_file_llseek, .read = coda_file_read, .write = coda_file_write,