aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2010-06-04 19:40:39 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2010-08-09 16:47:46 -0400
commitbe7ce4161f9e6bf2497f90337d1214aa6ee06e15 (patch)
treea9bf28ff703a81ebf309d470c68ae6aa788a2d36 /fs
parentb4272d4c810532e1a4dea111433a0af56d3bd2b7 (diff)
New method - evict_inode()
Hybrid of ->clear_inode() and ->delete_inode(); if present, does all fs work to be done when in-core inode is about to be gone, for whatever reason. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/inode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/inode.c b/fs/inode.c
index 60cb25969762..474a72f571a4 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -325,7 +325,9 @@ static void evict(struct inode *inode, int delete)
325{ 325{
326 const struct super_operations *op = inode->i_sb->s_op; 326 const struct super_operations *op = inode->i_sb->s_op;
327 327
328 if (delete && op->delete_inode) { 328 if (op->evict_inode) {
329 op->evict_inode(inode);
330 } else if (delete && op->delete_inode) {
329 op->delete_inode(inode); 331 op->delete_inode(inode);
330 } else { 332 } else {
331 if (inode->i_data.nrpages) 333 if (inode->i_data.nrpages)