aboutsummaryrefslogtreecommitdiffstats
path: root/fs/open.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-06-10 06:48:09 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-14 08:33:45 -0400
commite45198a6ac24bd2c4ad4a43b670c2f1a23dd2df3 (patch)
treed44f4217a8a556ac9ebb11cfc41c0e148fb1084c /fs/open.c
parent2675a4eb6a9f1240098721c8a84ede28abd9d7b3 (diff)
make finish_no_open() return int
namely, 1 ;-) That's what we want to return from ->atomic_open() instances after finish_no_open(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/open.c b/fs/open.c
index fc829d6c3a4b..d51c1b71b062 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -810,9 +810,10 @@ EXPORT_SYMBOL(finish_open);
810 * This can be used to set the result of a successful lookup in ->atomic_open(). 810 * This can be used to set the result of a successful lookup in ->atomic_open().
811 * The filesystem's atomic_open() method shall return NULL after calling this. 811 * The filesystem's atomic_open() method shall return NULL after calling this.
812 */ 812 */
813void finish_no_open(struct file *file, struct dentry *dentry) 813int finish_no_open(struct file *file, struct dentry *dentry)
814{ 814{
815 file->f_path.dentry = dentry; 815 file->f_path.dentry = dentry;
816 return 1;
816} 817}
817EXPORT_SYMBOL(finish_no_open); 818EXPORT_SYMBOL(finish_no_open);
818 819