Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124922
b: refs/heads/master
c: 2234d54
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Niv Sardi committed Dec 4, 2008
1 parent aa8f661 commit f8ad902
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 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: ddcd856d81861a523d79d077facd875da1f66792
refs/heads/master: 2234d54d3d855d6ffae88a24772a9389d6755e0c
10 changes: 1 addition & 9 deletions trunk/fs/xfs/linux-2.6/xfs_lrw.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
#include "xfs_vnodeops.h"

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


Expand Down Expand Up @@ -668,15 +667,8 @@ xfs_write(
if (new_size > xip->i_size)
xip->i_new_size = new_size;

/*
* 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))) {
if (likely(!(ioflags & IO_INVIS)))
xfs_ichgtime(xip, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG);
mnt_drop_write(file->f_path.mnt);
}

/*
* If the offset is beyond the size of the file, we have a couple
Expand Down

0 comments on commit f8ad902

Please sign in to comment.