]> Git Repo - linux.git/commitdiff
fs: jfs: Replace CURRENT_TIME_SEC by current_time()
authorDeepa Dinamani <[email protected]>
Fri, 11 Nov 2016 18:00:53 +0000 (10:00 -0800)
committerDave Kleikamp <[email protected]>
Fri, 11 Nov 2016 21:51:39 +0000 (15:51 -0600)
jfs uses nanosecond granularity for filesystem timestamps.
Only this assignment is not using nanosecond granularity.
Use current_time() to get the right granularity.

Signed-off-by: Deepa Dinamani <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Signed-off-by: Dave Kleikamp <[email protected]>
fs/jfs/ioctl.c

index 8653cac7e12eed46e0bc360741004dfd3f1ce54d..b6fd1ff29ddf91b6556ed9a61d06142484b610d5 100644 (file)
@@ -121,7 +121,7 @@ long jfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
 
                jfs_set_inode_flags(inode);
                inode_unlock(inode);
-               inode->i_ctime = CURRENT_TIME_SEC;
+               inode->i_ctime = current_time(inode);
                mark_inode_dirty(inode);
 setflags_out:
                mnt_drop_write_file(filp);
This page took 0.052495 seconds and 4 git commands to generate.