[Vserver] [PATCH 5/5] [fs] BME: fix consistency of IS_RDONLY

From: Sam Vilain <sam.vilain_at_catalyst.net.nz>
Date: Fri 24 Feb 2006 - 02:40:51 GMT
Message-Id: <20060224024051.16279.36552.stgit@wilber.wgtn.cat-it.co.nz>

The IS_RDONLY macro is defined inconsistently.

Signed-off-by: Sam Vilain <sam.vilain@catalyst.net.nz>

---
 include/linux/fs.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 250b002..3000655 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -150,7 +150,7 @@ extern int dir_notify_enable;
  */
 #define __IS_FLG(inode,flg) ((inode)->i_sb->s_flags & (flg))
 
-#define IS_RDONLY(inode) ((inode)->i_sb->s_flags & MS_RDONLY)
+#define IS_RDONLY(inode)	__IS_FLG(inode, MS_RDONLY)
 #define IS_SYNC(inode)		(__IS_FLG(inode, MS_SYNCHRONOUS) || \
 					((inode)->i_flags & S_SYNC))
 #define IS_DIRSYNC(inode)	(__IS_FLG(inode, MS_SYNCHRONOUS|MS_DIRSYNC) || \
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Fri Feb 24 02:59:09 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 24 Feb 2006 - 02:59:11 GMT by hypermail 2.1.8