aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/inode.c')
-rw-r--r--fs/ocfs2/inode.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c
index eb7fd07c90f2..0492464916b1 100644
--- a/fs/ocfs2/inode.c
+++ b/fs/ocfs2/inode.c
@@ -1194,9 +1194,10 @@ void ocfs2_evict_inode(struct inode *inode)
1194/* Called under inode_lock, with no more references on the 1194/* Called under inode_lock, with no more references on the
1195 * struct inode, so it's safe here to check the flags field 1195 * struct inode, so it's safe here to check the flags field
1196 * and to manipulate i_nlink without any other locks. */ 1196 * and to manipulate i_nlink without any other locks. */
1197void ocfs2_drop_inode(struct inode *inode) 1197int ocfs2_drop_inode(struct inode *inode)
1198{ 1198{
1199 struct ocfs2_inode_info *oi = OCFS2_I(inode); 1199 struct ocfs2_inode_info *oi = OCFS2_I(inode);
1200 int res;
1200 1201
1201 mlog_entry_void(); 1202 mlog_entry_void();
1202 1203
@@ -1204,11 +1205,12 @@ void ocfs2_drop_inode(struct inode *inode)
1204 (unsigned long long)oi->ip_blkno, inode->i_nlink, oi->ip_flags); 1205 (unsigned long long)oi->ip_blkno, inode->i_nlink, oi->ip_flags);
1205 1206
1206 if (oi->ip_flags & OCFS2_INODE_MAYBE_ORPHANED) 1207 if (oi->ip_flags & OCFS2_INODE_MAYBE_ORPHANED)
1207 generic_delete_inode(inode); 1208 res = 1;
1208 else 1209 else
1209 generic_drop_inode(inode); 1210 res = generic_drop_inode(inode);
1210 1211
1211 mlog_exit_void(); 1212 mlog_exit_void();
1213 return res;
1212} 1214}
1213 1215
1214/* 1216/*