git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nommu: struct vm_region's vm_usage count need not be atomic
[safe/jmp/linux-2.6]
/
fs
/
file_table.c
diff --git
a/fs/file_table.c
b/fs/file_table.c
index
17a55b8
..
69652c5
100644
(file)
--- a/
fs/file_table.c
+++ b/
fs/file_table.c
@@
-186,14
+186,13
@@
struct file *alloc_file(struct path *path, fmode_t mode,
* that we can do debugging checks at __fput()
*/
if ((mode & FMODE_WRITE) && !special_file(path->dentry->d_inode->i_mode)) {
* that we can do debugging checks at __fput()
*/
if ((mode & FMODE_WRITE) && !special_file(path->dentry->d_inode->i_mode)) {
- int error = 0;
file_take_write(file);
file_take_write(file);
- error = mnt_clone_write(path->mnt);
- WARN_ON(error);
+ WARN_ON(mnt_clone_write(path->mnt));
}
ima_counts_get(file);
return file;
}
}
ima_counts_get(file);
return file;
}
+EXPORT_SYMBOL(alloc_file);
void fput(struct file *file)
{
void fput(struct file *file)
{