diff options
Diffstat (limited to 'fs/ext2/inode.c')
-rw-r--r-- | fs/ext2/inode.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index acf678831103..e27130341d4f 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c | |||
@@ -41,8 +41,6 @@ MODULE_AUTHOR("Remy Card and others"); | |||
41 | MODULE_DESCRIPTION("Second Extended Filesystem"); | 41 | MODULE_DESCRIPTION("Second Extended Filesystem"); |
42 | MODULE_LICENSE("GPL"); | 42 | MODULE_LICENSE("GPL"); |
43 | 43 | ||
44 | static int ext2_update_inode(struct inode * inode, int do_sync); | ||
45 | |||
46 | /* | 44 | /* |
47 | * Test whether an inode is a fast symlink. | 45 | * Test whether an inode is a fast symlink. |
48 | */ | 46 | */ |
@@ -66,7 +64,7 @@ void ext2_delete_inode (struct inode * inode) | |||
66 | goto no_delete; | 64 | goto no_delete; |
67 | EXT2_I(inode)->i_dtime = get_seconds(); | 65 | EXT2_I(inode)->i_dtime = get_seconds(); |
68 | mark_inode_dirty(inode); | 66 | mark_inode_dirty(inode); |
69 | ext2_update_inode(inode, inode_needs_sync(inode)); | 67 | ext2_write_inode(inode, inode_needs_sync(inode)); |
70 | 68 | ||
71 | inode->i_size = 0; | 69 | inode->i_size = 0; |
72 | if (inode->i_blocks) | 70 | if (inode->i_blocks) |
@@ -1226,10 +1224,6 @@ struct inode *ext2_iget (struct super_block *sb, unsigned long ino) | |||
1226 | return inode; | 1224 | return inode; |
1227 | 1225 | ||
1228 | ei = EXT2_I(inode); | 1226 | ei = EXT2_I(inode); |
1229 | #ifdef CONFIG_EXT2_FS_POSIX_ACL | ||
1230 | ei->i_acl = EXT2_ACL_NOT_CACHED; | ||
1231 | ei->i_default_acl = EXT2_ACL_NOT_CACHED; | ||
1232 | #endif | ||
1233 | ei->i_block_alloc_info = NULL; | 1227 | ei->i_block_alloc_info = NULL; |
1234 | 1228 | ||
1235 | raw_inode = ext2_get_inode(inode->i_sb, ino, &bh); | 1229 | raw_inode = ext2_get_inode(inode->i_sb, ino, &bh); |
@@ -1337,7 +1331,7 @@ bad_inode: | |||
1337 | return ERR_PTR(ret); | 1331 | return ERR_PTR(ret); |
1338 | } | 1332 | } |
1339 | 1333 | ||
1340 | static int ext2_update_inode(struct inode * inode, int do_sync) | 1334 | int ext2_write_inode(struct inode *inode, int do_sync) |
1341 | { | 1335 | { |
1342 | struct ext2_inode_info *ei = EXT2_I(inode); | 1336 | struct ext2_inode_info *ei = EXT2_I(inode); |
1343 | struct super_block *sb = inode->i_sb; | 1337 | struct super_block *sb = inode->i_sb; |
@@ -1442,11 +1436,6 @@ static int ext2_update_inode(struct inode * inode, int do_sync) | |||
1442 | return err; | 1436 | return err; |
1443 | } | 1437 | } |
1444 | 1438 | ||
1445 | int ext2_write_inode(struct inode *inode, int wait) | ||
1446 | { | ||
1447 | return ext2_update_inode(inode, wait); | ||
1448 | } | ||
1449 | |||
1450 | int ext2_sync_inode(struct inode *inode) | 1439 | int ext2_sync_inode(struct inode *inode) |
1451 | { | 1440 | { |
1452 | struct writeback_control wbc = { | 1441 | struct writeback_control wbc = { |