X-Git-Url: https://nv-tegra.nvidia.com/r/gitweb?p=linux-2.6.git;a=blobdiff_plain;f=fs%2Fext4%2Ffile.c;h=503a489274021f82c47533e8e58477859b51200b;hp=56eee3d796c2e7122e84e99e957ac7ff5cbd2dfd;hb=1f63b9c15b17d5af360c180f5c71537e954d5d3b;hpb=b24bc1e61cec2174faf5dfa632da16b6ca17144f diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 56eee3d796c..503a4892740 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -35,9 +35,9 @@ */ static int ext4_release_file(struct inode *inode, struct file *filp) { - if (EXT4_I(inode)->i_state & EXT4_STATE_DA_ALLOC_CLOSE) { + if (ext4_test_inode_state(inode, EXT4_STATE_DA_ALLOC_CLOSE)) { ext4_alloc_da_blocks(inode); - EXT4_I(inode)->i_state &= ~EXT4_STATE_DA_ALLOC_CLOSE; + ext4_clear_inode_state(inode, EXT4_STATE_DA_ALLOC_CLOSE); } /* if we are the last writer on the inode, drop the block reservation */ if ((filp->f_mode & FMODE_WRITE) &&