[PATCH] move capable() to capability.h
[deliverable/linux.git] / fs / xfs / linux-2.6 / xfs_iops.c
index 41c478bb1ffcaf22b330fec169e609892349493f..97fb1470cf28693478aeb05cb6e338e7347a6e80 100644 (file)
@@ -54,6 +54,9 @@
 #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
This page took 0.039465 seconds and 5 git commands to generate.