]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/xfs/xfs_inode.h
xfs: get rid of open-coded S_ISREG(), etc.
[mv-sheeva.git] / fs / xfs / xfs_inode.h
index a97644ab945ad2cab9320027d9180a1460504d8a..2380a4bcbece1c5eb018342cfe036b1663affae1 100644 (file)
@@ -263,7 +263,7 @@ typedef struct xfs_inode {
        struct inode            i_vnode;        /* embedded VFS inode */
 } xfs_inode_t;
 
-#define XFS_ISIZE(ip)  (((ip)->i_d.di_mode & S_IFMT) == S_IFREG) ? \
+#define XFS_ISIZE(ip)  S_ISREG((ip)->i_d.di_mode) ? \
                                (ip)->i_size : (ip)->i_d.di_size;
 
 /* Convert from vfs inode to xfs inode */