diff options
Diffstat (limited to 'fs/udf')
-rw-r--r-- | fs/udf/inode.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/fs/udf/inode.c b/fs/udf/inode.c index e86f9b67aa16..68cc7b144c26 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c | |||
@@ -51,7 +51,6 @@ MODULE_LICENSE("GPL"); | |||
51 | 51 | ||
52 | static umode_t udf_convert_permissions(struct fileEntry *); | 52 | static umode_t udf_convert_permissions(struct fileEntry *); |
53 | static int udf_update_inode(struct inode *, int); | 53 | static int udf_update_inode(struct inode *, int); |
54 | static void udf_fill_inode(struct inode *, struct buffer_head *); | ||
55 | static int udf_sync_inode(struct inode *inode); | 54 | static int udf_sync_inode(struct inode *inode); |
56 | static int udf_alloc_i_data(struct inode *inode, size_t size); | 55 | static int udf_alloc_i_data(struct inode *inode, size_t size); |
57 | static sector_t inode_getblk(struct inode *, sector_t, int *, int *); | 56 | static sector_t inode_getblk(struct inode *, sector_t, int *, int *); |
@@ -1275,8 +1274,11 @@ static void __udf_read_inode(struct inode *inode) | |||
1275 | { | 1274 | { |
1276 | struct buffer_head *bh = NULL; | 1275 | struct buffer_head *bh = NULL; |
1277 | struct fileEntry *fe; | 1276 | struct fileEntry *fe; |
1277 | struct extendedFileEntry *efe; | ||
1278 | uint16_t ident; | 1278 | uint16_t ident; |
1279 | struct udf_inode_info *iinfo = UDF_I(inode); | 1279 | struct udf_inode_info *iinfo = UDF_I(inode); |
1280 | struct udf_sb_info *sbi = UDF_SB(inode->i_sb); | ||
1281 | unsigned int link_count; | ||
1280 | 1282 | ||
1281 | /* | 1283 | /* |
1282 | * Set defaults, but the inode is still incomplete! | 1284 | * Set defaults, but the inode is still incomplete! |
@@ -1307,6 +1309,7 @@ static void __udf_read_inode(struct inode *inode) | |||
1307 | } | 1309 | } |
1308 | 1310 | ||
1309 | fe = (struct fileEntry *)bh->b_data; | 1311 | fe = (struct fileEntry *)bh->b_data; |
1312 | efe = (struct extendedFileEntry *)bh->b_data; | ||
1310 | 1313 | ||
1311 | if (fe->icbTag.strategyType == cpu_to_le16(4096)) { | 1314 | if (fe->icbTag.strategyType == cpu_to_le16(4096)) { |
1312 | struct buffer_head *ibh; | 1315 | struct buffer_head *ibh; |
@@ -1346,22 +1349,6 @@ static void __udf_read_inode(struct inode *inode) | |||
1346 | make_bad_inode(inode); | 1349 | make_bad_inode(inode); |
1347 | return; | 1350 | return; |
1348 | } | 1351 | } |
1349 | udf_fill_inode(inode, bh); | ||
1350 | |||
1351 | brelse(bh); | ||
1352 | } | ||
1353 | |||
1354 | static void udf_fill_inode(struct inode *inode, struct buffer_head *bh) | ||
1355 | { | ||
1356 | struct fileEntry *fe; | ||
1357 | struct extendedFileEntry *efe; | ||
1358 | struct udf_sb_info *sbi = UDF_SB(inode->i_sb); | ||
1359 | struct udf_inode_info *iinfo = UDF_I(inode); | ||
1360 | unsigned int link_count; | ||
1361 | |||
1362 | fe = (struct fileEntry *)bh->b_data; | ||
1363 | efe = (struct extendedFileEntry *)bh->b_data; | ||
1364 | |||
1365 | if (fe->icbTag.strategyType == cpu_to_le16(4)) | 1352 | if (fe->icbTag.strategyType == cpu_to_le16(4)) |
1366 | iinfo->i_strat4096 = 0; | 1353 | iinfo->i_strat4096 = 0; |
1367 | else /* if (fe->icbTag.strategyType == cpu_to_le16(4096)) */ | 1354 | else /* if (fe->icbTag.strategyType == cpu_to_le16(4096)) */ |
@@ -1551,6 +1538,7 @@ static void udf_fill_inode(struct inode *inode, struct buffer_head *bh) | |||
1551 | } else | 1538 | } else |
1552 | make_bad_inode(inode); | 1539 | make_bad_inode(inode); |
1553 | } | 1540 | } |
1541 | brelse(bh); | ||
1554 | } | 1542 | } |
1555 | 1543 | ||
1556 | static int udf_alloc_i_data(struct inode *inode, size_t size) | 1544 | static int udf_alloc_i_data(struct inode *inode, size_t size) |