make finish_no_open() return int
[linux-block.git] / fs / open.c
index fc829d6c3a4bd7cad48ffd1bbe6cb6249bb61ee6..d51c1b71b062b4457182f9352ec9c78c81e188e5 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -810,9 +810,10 @@ EXPORT_SYMBOL(finish_open);
  * This can be used to set the result of a successful lookup in ->atomic_open().
  * The filesystem's atomic_open() method shall return NULL after calling this.
  */
-void finish_no_open(struct file *file, struct dentry *dentry)
+int finish_no_open(struct file *file, struct dentry *dentry)
 {
        file->f_path.dentry = dentry;
+       return 1;
 }
 EXPORT_SYMBOL(finish_no_open);