Skip to content

Commit c628731

Browse files
author
Al Viro
committed
generic_detach_inode() can be static now
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 2bbbda3 commit c628731

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎fs/inode.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ EXPORT_SYMBOL(generic_delete_inode);
12341234
*
12351235
* Returns 1 if inode should be completely destroyed.
12361236
*/
1237-
int generic_detach_inode(struct inode *inode)
1237+
static int generic_detach_inode(struct inode *inode)
12381238
{
12391239
struct super_block *sb = inode->i_sb;
12401240

@@ -1264,7 +1264,6 @@ int generic_detach_inode(struct inode *inode)
12641264
spin_unlock(&inode_lock);
12651265
return 1;
12661266
}
1267-
EXPORT_SYMBOL_GPL(generic_detach_inode);
12681267

12691268
static void generic_forget_inode(struct inode *inode)
12701269
{

‎include/linux/fs.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2167,7 +2167,6 @@ extern ino_t iunique(struct super_block *, ino_t);
21672167
extern int inode_needs_sync(struct inode *inode);
21682168
extern void generic_delete_inode(struct inode *inode);
21692169
extern void generic_drop_inode(struct inode *inode);
2170-
extern int generic_detach_inode(struct inode *inode);
21712170

21722171
extern struct inode *ilookup5_nowait(struct super_block *sb,
21732172
unsigned long hashval, int (*test)(struct inode *, void *),

0 commit comments

Comments
 (0)