aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf
diff options
context:
space:
mode:
Diffstat (limited to 'fs/udf')
-rw-r--r--fs/udf/ialloc.c1
-rw-r--r--fs/udf/inode.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/fs/udf/ialloc.c b/fs/udf/ialloc.c
index 6eaf5edf1ea1..647370d70175 100644
--- a/fs/udf/ialloc.c
+++ b/fs/udf/ialloc.c
@@ -95,6 +95,7 @@ struct inode *udf_new_inode(struct inode *dir, umode_t mode, int *err)
95 lvidiu = udf_sb_lvidiu(sb); 95 lvidiu = udf_sb_lvidiu(sb);
96 if (lvidiu) { 96 if (lvidiu) {
97 iinfo->i_unique = lvid_get_unique_id(sb); 97 iinfo->i_unique = lvid_get_unique_id(sb);
98 inode->i_generation = iinfo->i_unique;
98 mutex_lock(&sbi->s_alloc_mutex); 99 mutex_lock(&sbi->s_alloc_mutex);
99 if (S_ISDIR(mode)) 100 if (S_ISDIR(mode))
100 le32_add_cpu(&lvidiu->numDirs, 1); 101 le32_add_cpu(&lvidiu->numDirs, 1);
diff --git a/fs/udf/inode.c b/fs/udf/inode.c
index 3a44d9187aad..08598843288f 100644
--- a/fs/udf/inode.c
+++ b/fs/udf/inode.c
@@ -1484,6 +1484,7 @@ reread:
1484 iinfo->i_lenAlloc = le32_to_cpu(efe->lengthAllocDescs); 1484 iinfo->i_lenAlloc = le32_to_cpu(efe->lengthAllocDescs);
1485 iinfo->i_checkpoint = le32_to_cpu(efe->checkpoint); 1485 iinfo->i_checkpoint = le32_to_cpu(efe->checkpoint);
1486 } 1486 }
1487 inode->i_generation = iinfo->i_unique;
1487 1488
1488 switch (fe->icbTag.fileType) { 1489 switch (fe->icbTag.fileType) {
1489 case ICBTAG_FILE_TYPE_DIRECTORY: 1490 case ICBTAG_FILE_TYPE_DIRECTORY: