[XFS] mraccessf & mrupdatef are supposed to be the "flags" versions of the
authorLachlan McIlroy <lachlan@sgi.com>
Sat, 10 Feb 2007 07:35:40 +0000 (18:35 +1100)
committerTim Shimmin <tes@sgi.com>
Sat, 10 Feb 2007 07:35:40 +0000 (18:35 +1100)
functions, but they

a) ignore the flags parameter completely, and b) are never called
directly, only via the flag-less defines anyway

So, drop the #define indirection, and rename mraccessf to mraccess, etc.

SGI-PV: 959138
SGI-Modid: xfs-linux-melb:xfs-kern:27711a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/linux-2.6/mrlock.h

index 32e1ce0..af168a1 100644 (file)
@@ -31,15 +31,13 @@ typedef struct {
        do { (mrp)->mr_writer = 0; init_rwsem(&(mrp)->mr_lock); } while (0)
 #define mrlock_init(mrp, t,n,s)        mrinit(mrp, n)
 #define mrfree(mrp)            do { } while (0)
-#define mraccess(mrp)          mraccessf(mrp, 0)
-#define mrupdate(mrp)          mrupdatef(mrp, 0)
 
-static inline void mraccessf(mrlock_t *mrp, int flags)
+static inline void mraccess(mrlock_t *mrp)
 {
        down_read(&mrp->mr_lock);
 }
 
-static inline void mrupdatef(mrlock_t *mrp, int flags)
+static inline void mrupdate(mrlock_t *mrp)
 {
        down_write(&mrp->mr_lock);
        mrp->mr_writer = 1;