]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ext4/ialloc.c
ext4: Use bitops to read/modify i_flags in struct ext4_inode_info
[net-next-2.6.git] / fs / ext4 / ialloc.c
index 52618d5a1773bf6b06b72cf5ff2f9c26478bde7d..7f6b5826d5a602c14b29e1cf5be7b4fcaac71c97 100644 (file)
@@ -492,7 +492,7 @@ static int find_group_orlov(struct super_block *sb, struct inode *parent,
 
        if (S_ISDIR(mode) &&
            ((parent == sb->s_root->d_inode) ||
-            (EXT4_I(parent)->i_flags & EXT4_TOPDIR_FL))) {
+            (ext4_test_inode_flag(parent, EXT4_INODE_TOPDIR)))) {
                int best_ndir = inodes_per_group;
                int ret = -1;
 
@@ -1038,7 +1038,7 @@ got:
        if (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_EXTENTS)) {
                /* set extent flag only for directory, file and normal symlink*/
                if (S_ISDIR(mode) || S_ISREG(mode) || S_ISLNK(mode)) {
-                       EXT4_I(inode)->i_flags |= EXT4_EXTENTS_FL;
+                       ext4_set_inode_flag(inode, EXT4_INODE_EXTENTS);
                        ext4_ext_tree_init(handle, inode);
                }
        }