diff options
Diffstat (limited to 'fs/libfs.c')
-rw-r--r-- | fs/libfs.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fs/libfs.c b/fs/libfs.c index 88e3e00e2eca..29012a303ef8 100644 --- a/fs/libfs.c +++ b/fs/libfs.c | |||
@@ -1075,3 +1075,19 @@ struct inode *alloc_anon_inode(struct super_block *s) | |||
1075 | return inode; | 1075 | return inode; |
1076 | } | 1076 | } |
1077 | EXPORT_SYMBOL(alloc_anon_inode); | 1077 | EXPORT_SYMBOL(alloc_anon_inode); |
1078 | |||
1079 | /** | ||
1080 | * simple_nosetlease - generic helper for prohibiting leases | ||
1081 | * @filp: file pointer | ||
1082 | * @arg: type of lease to obtain | ||
1083 | * @flp: new lease supplied for insertion | ||
1084 | * | ||
1085 | * Generic helper for filesystems that do not wish to allow leases to be set. | ||
1086 | * All arguments are ignored and it just returns -EINVAL. | ||
1087 | */ | ||
1088 | int | ||
1089 | simple_nosetlease(struct file *filp, long arg, struct file_lock **flp) | ||
1090 | { | ||
1091 | return -EINVAL; | ||
1092 | } | ||
1093 | EXPORT_SYMBOL(simple_nosetlease); | ||