summaryrefslogtreecommitdiffstats
path: root/fs/ufs/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-06-10 12:01:50 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-06-10 12:02:28 -0400
commit67a70017fa0a152657bc7e337e69bb9c9f5549bf (patch)
tree47b968954b1de4a728f350afb440a3cb3e24eec5 /fs/ufs/inode.c
parentbabef37dccbaa49249a22bae9150686815d7be71 (diff)
downloadtalos-obmc-linux-67a70017fa0a152657bc7e337e69bb9c9f5549bf.tar.gz
talos-obmc-linux-67a70017fa0a152657bc7e337e69bb9c9f5549bf.zip
ufs: we need to sync inode before freeing it
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs/inode.c')
-rw-r--r--fs/ufs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c
index 34f11cf0900a..da553ffec85b 100644
--- a/fs/ufs/inode.c
+++ b/fs/ufs/inode.c
@@ -848,6 +848,7 @@ void ufs_evict_inode(struct inode * inode)
(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
S_ISLNK(inode->i_mode)))
ufs_truncate_blocks(inode);
+ ufs_update_inode(inode, inode_needs_sync(inode));
}
invalidate_inode_buffers(inode);
OpenPOWER on IntegriCloud