diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-06-04 23:40:39 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-08-09 20:47:46 (GMT) |
commit | be7ce4161f9e6bf2497f90337d1214aa6ee06e15 (patch) | |
tree | a9bf28ff703a81ebf309d470c68ae6aa788a2d36 /fs/inode.c | |
parent | b4272d4c810532e1a4dea111433a0af56d3bd2b7 (diff) | |
download | linux-fsl-qoriq-be7ce4161f9e6bf2497f90337d1214aa6ee06e15.tar.xz |
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/inode.c')
-rw-r--r-- | fs/inode.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -325,7 +325,9 @@ static void evict(struct inode *inode, int delete) { const struct super_operations *op = inode->i_sb->s_op; - if (delete && op->delete_inode) { + if (op->evict_inode) { + op->evict_inode(inode); + } else if (delete && op->delete_inode) { op->delete_inode(inode); } else { if (inode->i_data.nrpages) |