summaryrefslogtreecommitdiff
path: root/module/zfs
diff options
context:
space:
mode:
authorBrian Behlendorf <behlendorf1@llnl.gov>2013-07-26 17:38:49 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2013-08-07 23:11:19 +0000
commit78d7a5d780d44708a6e8835a0f1e185cc8ee3dfb (patch)
tree9d46f9015f172175080e82c4381c4ff8ece7219e /module/zfs
parente0fd27870850d7beef9f01f93f30b7255338f4b0 (diff)
Diffstat (limited to 'module/zfs')
-rw-r--r--module/zfs/zpl_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zfs/zpl_file.c b/module/zfs/zpl_file.c
index ebae6bfe2282..299589193e5c 100644
--- a/module/zfs/zpl_file.c
+++ b/module/zfs/zpl_file.c
@@ -52,6 +52,9 @@ zpl_release(struct inode *ip, struct file *filp)
cred_t *cr = CRED();
int error;
+ if (ITOZ(ip)->z_atime_dirty)
+ mark_inode_dirty(ip);
+
crhold(cr);
error = -zfs_close(ip, filp->f_flags, cr);
crfree(cr);