aboutsummaryrefslogtreecommitdiffstats
path: root/fs/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-02-12 19:43:17 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-03-20 21:29:33 -0400
commit9bcb4b733c22b7dbc4cf847e707ac98f751e9180 (patch)
treef99c68d0b7d049d7a25706d23f224c734d0e1da1 /fs/inode.c
parente28e832c3e1e1197873cfd0b6ce86868cf5c391d (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 'fs/inode.c')
-rw-r--r--fs/inode.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/inode.c b/fs/inode.c
index 83ab215baab1..92de04b0baa2 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -1369,17 +1369,6 @@ int generic_delete_inode(struct inode *inode)
1369EXPORT_SYMBOL(generic_delete_inode); 1369EXPORT_SYMBOL(generic_delete_inode);
1370 1370
1371/* 1371/*
1372 * Normal UNIX filesystem behaviour: delete the
1373 * inode when the usage count drops to zero, and
1374 * i_nlink is zero.
1375 */
1376int generic_drop_inode(struct inode *inode)
1377{
1378 return !inode->i_nlink || inode_unhashed(inode);
1379}
1380EXPORT_SYMBOL_GPL(generic_drop_inode);
1381
1382/*
1383 * Called when we're dropping the last reference 1372 * Called when we're dropping the last reference
1384 * to an inode. 1373 * to an inode.
1385 * 1374 *