Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90961
b: refs/heads/master
c: ec82687
h: refs/heads/master
i:
  90959: f220275
v: v3
  • Loading branch information
Dave Hansen authored and Al Viro committed Apr 19, 2008
1 parent e28b4c7 commit 8ea551c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 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: 2f676cbc0d60ae806216c7a61c6971bd72dedde8
refs/heads/master: ec82687f29127a954dd0da95dc1e0a4ce92b560c
7 changes: 0 additions & 7 deletions trunk/fs/xfs/linux-2.6/xfs_iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,6 @@ xfs_ichgtime_fast(
*/
ASSERT((flags & XFS_ICHGTIME_ACC) == 0);

/*
* We're not supposed to change timestamps in readonly-mounted
* filesystems. Throw it away if anyone asks us.
*/
if (unlikely(IS_RDONLY(inode)))
return;

if (flags & XFS_ICHGTIME_MOD) {
tvp = &inode->i_mtime;
ip->i_d.di_mtime.t_sec = (__int32_t)tvp->tv_sec;
Expand Down
9 changes: 8 additions & 1 deletion trunk/fs/xfs/linux-2.6/xfs_lrw.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#include "xfs_vnodeops.h"

#include <linux/capability.h>
#include <linux/mount.h>
#include <linux/writeback.h>


Expand Down Expand Up @@ -670,10 +671,16 @@ xfs_write(
if (new_size > xip->i_size)
xip->i_new_size = new_size;

if (likely(!(ioflags & IO_INVIS))) {
/*
* We're not supposed to change timestamps in readonly-mounted
* filesystems. Throw it away if anyone asks us.
*/
if (likely(!(ioflags & IO_INVIS) &&
!mnt_want_write(file->f_path.mnt))) {
file_update_time(file);
xfs_ichgtime_fast(xip, inode,
XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG);
mnt_drop_write(file->f_path.mnt);
}

/*
Expand Down

0 comments on commit 8ea551c

Please sign in to comment.