projects/linux·commit b43d4dda

Merge git://oss.sgi.com:8090/oss/git/rc-fixes-xfs-2.6

b43d4dda · Linus Torvalds <[email protected]> · 2006-02-07 16:28:26 -08:00

Commit
b43d4ddaec2b33fd6eaf0bed970c86ab08a52aaf
Parents
8e63e66b · 9bd6f13d

Merge commit. Changes below are compared with the first parent: 8e63e66b.

Changes

2 files changed · +4 −1

FileStatusAddDelContent
fs/xfs/linux-2.6/xfs_aops.cmodified+2−1View file
fs/xfs/linux-2.6/xfs_iops.cmodified+2−0View file

fs/xfs/linux-2.6/xfs_aops.c

View file
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c
index 9892268..8f2beec 100644
--- a/fs/xfs/linux-2.6/xfs_aops.c
+++ b/fs/xfs/linux-2.6/xfs_aops.c
@@ -747,10 +747,11 @@ xfs_convert_page(
struct backing_dev_info *bdi;
bdi = inode->i_mapping->backing_dev_info;
+ wbc->nr_to_write--;
if (bdi_write_congested(bdi)) {
wbc->encountered_congestion = 1;
done = 1;
- } else if (--wbc->nr_to_write <= 0) {
+ } else if (wbc->nr_to_write <= 0) {
done = 1;
}
}

fs/xfs/linux-2.6/xfs_iops.c

View file
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c
index eda7919..d7f6f2d 100644
--- a/fs/xfs/linux-2.6/xfs_iops.c
+++ b/fs/xfs/linux-2.6/xfs_iops.c
@@ -673,6 +673,8 @@ linvfs_setattr(
if (ia_valid & ATTR_ATIME) {
vattr.va_mask |= XFS_AT_ATIME;
vattr.va_atime = attr->ia_atime;
+ if (ia_valid & ATTR_ATIME_SET)
+ inode->i_atime = attr->ia_atime;
}
if (ia_valid & ATTR_MTIME) {
vattr.va_mask |= XFS_AT_MTIME;