diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-02-12 19:43:17 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 21:29:33 -0400 |
commit | 9bcb4b733c22b7dbc4cf847e707ac98f751e9180 (patch) | |
tree | f99c68d0b7d049d7a25706d23f224c734d0e1da1 /include/linux/fs.h | |
parent | e28e832c3e1e1197873cfd0b6ce86868cf5c391d (diff) |
vfs: turn generic_drop_inode() into static inline
Once upon a time it used to be much bigger, but these days there's
no point whatsoever keeping it in fs/inode.c, especially since
it's not even needed as initializer for ->drop_inode() - it's the
default and leaving ->drop_inode NULL will do just as well.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 0ab89426ba55..b89dc4d60d99 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2305,7 +2305,10 @@ extern struct inode * igrab(struct inode *); | |||
2305 | extern ino_t iunique(struct super_block *, ino_t); | 2305 | extern ino_t iunique(struct super_block *, ino_t); |
2306 | extern int inode_needs_sync(struct inode *inode); | 2306 | extern int inode_needs_sync(struct inode *inode); |
2307 | extern int generic_delete_inode(struct inode *inode); | 2307 | extern int generic_delete_inode(struct inode *inode); |
2308 | extern int generic_drop_inode(struct inode *inode); | 2308 | static inline int generic_drop_inode(struct inode *inode) |
2309 | { | ||
2310 | return !inode->i_nlink || inode_unhashed(inode); | ||
2311 | } | ||
2309 | 2312 | ||
2310 | extern struct inode *ilookup5_nowait(struct super_block *sb, | 2313 | extern struct inode *ilookup5_nowait(struct super_block *sb, |
2311 | unsigned long hashval, int (*test)(struct inode *, void *), | 2314 | unsigned long hashval, int (*test)(struct inode *, void *), |