diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-06-07 13:43:19 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-08-09 16:48:35 -0400 |
commit | 45321ac54316eaeeebde0b5f728a1791e500974c (patch) | |
tree | c3989dd1a8b4a50168d696aa608941de88da9ade /include | |
parent | 30140837f256558c943636245ab90897a9455a70 (diff) |
Make ->drop_inode() just return whether inode needs to be dropped
... and let iput_final() do the actual eviction or retention
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 4eaa6b2e35db..8553adbda57b 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1562,7 +1562,7 @@ struct super_operations { | |||
1562 | 1562 | ||
1563 | void (*dirty_inode) (struct inode *); | 1563 | void (*dirty_inode) (struct inode *); |
1564 | int (*write_inode) (struct inode *, struct writeback_control *wbc); | 1564 | int (*write_inode) (struct inode *, struct writeback_control *wbc); |
1565 | void (*drop_inode) (struct inode *); | 1565 | int (*drop_inode) (struct inode *); |
1566 | void (*evict_inode) (struct inode *); | 1566 | void (*evict_inode) (struct inode *); |
1567 | void (*put_super) (struct super_block *); | 1567 | void (*put_super) (struct super_block *); |
1568 | void (*write_super) (struct super_block *); | 1568 | void (*write_super) (struct super_block *); |
@@ -2164,8 +2164,8 @@ extern void iput(struct inode *); | |||
2164 | extern struct inode * igrab(struct inode *); | 2164 | extern struct inode * igrab(struct inode *); |
2165 | extern ino_t iunique(struct super_block *, ino_t); | 2165 | extern ino_t iunique(struct super_block *, ino_t); |
2166 | extern int inode_needs_sync(struct inode *inode); | 2166 | extern int inode_needs_sync(struct inode *inode); |
2167 | extern void generic_delete_inode(struct inode *inode); | 2167 | extern int generic_delete_inode(struct inode *inode); |
2168 | extern void generic_drop_inode(struct inode *inode); | 2168 | extern int generic_drop_inode(struct inode *inode); |
2169 | 2169 | ||
2170 | extern struct inode *ilookup5_nowait(struct super_block *sb, | 2170 | extern struct inode *ilookup5_nowait(struct super_block *sb, |
2171 | unsigned long hashval, int (*test)(struct inode *, void *), | 2171 | unsigned long hashval, int (*test)(struct inode *, void *), |