Created
March 23, 2011 20:28
-
-
Save truncs/883883 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static inline int ext2_inode_is_fast_symlink(struct inode *inode) | |
{ | |
int ea_blocks = EXT2_I(inode)->i_file_acl ? | |
(inode->i_sb->s_blocksize >> 9) : 0; | |
return (S_ISLNK(inode->i_mode) && | |
inode->i_blocks - ea_blocks == 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment