Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90955
b: refs/heads/master
c: 20ddee2
h: refs/heads/master
i:
  90953: 7c1e8ee
  90951: 2cee23f
v: v3
  • Loading branch information
Dave Hansen authored and Al Viro committed Apr 19, 2008
1 parent 02596e9 commit 973939c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 74f9fdfa1f229284ee1ea58fa47f2cdeeb12f6fe
refs/heads/master: 20ddee2c75339cc095f6191c3115f81da8955e96
6 changes: 5 additions & 1 deletion trunk/fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1250,10 +1250,13 @@ void file_update_time(struct file *file)
struct inode *inode = file->f_path.dentry->d_inode;
struct timespec now;
int sync_it = 0;
int err;

if (IS_NOCMTIME(inode))
return;
if (IS_RDONLY(inode))

err = mnt_want_write(file->f_path.mnt);
if (err)
return;

now = current_fs_time(inode->i_sb);
Expand All @@ -1274,6 +1277,7 @@ void file_update_time(struct file *file)

if (sync_it)
mark_inode_dirty_sync(inode);
mnt_drop_write(file->f_path.mnt);
}

EXPORT_SYMBOL(file_update_time);
Expand Down

0 comments on commit 973939c

Please sign in to comment.