projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
blk-mq: clear q->mq_ops if init fail
[linux-2.6-block.git]
/
fs
/
file.c
diff --git
a/fs/file.c
b/fs/file.c
index 1fbc5c0555a9caefb153f9b07cbc716583ef658e..6b1acdfe59dac4bcd73caf8ed2994498b8e81dea 100644
(file)
--- a/
fs/file.c
+++ b/
fs/file.c
@@
-784,6
+784,11
@@
unsigned long __fdget_pos(unsigned int fd)
return v;
}
+void __f_unlock_pos(struct file *f)
+{
+ mutex_unlock(&f->f_pos_lock);
+}
+
/*
* We only lock f_pos if we have threads or if the file might be
* shared with another process. In both cases we'll have an elevated