projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] move capable() to capability.h
[deliverable/linux.git]
/
fs
/
xfs
/
linux-2.6
/
xfs_iops.c
diff --git
a/fs/xfs/linux-2.6/xfs_iops.c
b/fs/xfs/linux-2.6/xfs_iops.c
index 14215a7db59f4881a902d230557a358ab1119452..97fb1470cf28693478aeb05cb6e338e7347a6e80 100644
(file)
--- a/
fs/xfs/linux-2.6/xfs_iops.c
+++ b/
fs/xfs/linux-2.6/xfs_iops.c
@@
-54,6
+54,9
@@
#include <linux/xattr.h>
#include <linux/namei.h>
#include <linux/xattr.h>
#include <linux/namei.h>
+#define IS_NOATIME(inode) ((inode->i_sb->s_flags & MS_NOATIME) || \
+ (S_ISDIR(inode->i_mode) && inode->i_sb->s_flags & MS_NODIRATIME))
+
/*
* Change the requested timestamp in the given inode.
* We don't lock across timestamp updates, and we don't log them but
/*
* Change the requested timestamp in the given inode.
* We don't lock across timestamp updates, and we don't log them but
@@
-203,7
+206,7
@@
validate_fields(
ip->i_nlink = va.va_nlink;
ip->i_blocks = va.va_nblocks;
ip->i_nlink = va.va_nlink;
ip->i_blocks = va.va_nblocks;
- /* we're under i_
sem
so i_size can't change under us */
+ /* we're under i_
mutex
so i_size can't change under us */
if (i_size_read(ip) != va.va_size)
i_size_write(ip, va.va_size);
}
if (i_size_read(ip) != va.va_size)
i_size_write(ip, va.va_size);
}
This page took
0.0272 seconds
and
5
git commands to generate.